grafana+prometheus监控linux指标

先查看linux架构

root@node-0006 node_exporter-1.6.1.linux-amd64\]# uname -m aarch64 我服务器是**ARM 架构** 所以是下载适用于 ARM64 的 Node Exporter: 新建一个文件夹 进入 ``` wget https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-arm64.tar.gz ``` ``` tar -xzf node_exporter-1.6.1.linux-arm64.tar.gz cd node_exporter-1.6.1.linux-arm64 ``` 确保 `node_exporter` 文件具有可执行权限: chmod +x node_exporter 启动 Node Exporter: ``` ./node_exporter ``` 如果看到大量以 `node_` 开头的指标,表示 Node Exporter 已成功运行。 ![](https://i-blog.csdnimg.cn/direct/075264e3ec6d4357a5a4e67f2d3fe2ce.png) 可以用目标服务器 curl http://localhost:9100/metrics 如果服务器是内网,用nginx配置 转发 location /linux_metrics { proxy_pass http://服务器ip:9100/metrics; } 这样就用域名访问https://域名/linux_metrics scrape_configs: - job_name: 'prometheus' static_configs: - targets: \['localhost:9090'

  • job_name: 'linux_node_exporter'

metrics_path: '/linux_metrics'

scheme: https

static_configs:

  • targets: ['域名']

prometheus有指标了就行

grafana添加linux面板

相关推荐
还是奇怪2 小时前
Linux - 安全排查 3
android·linux·安全
NUZGNAW2 小时前
VMware安装Centos 7
linux·运维·centos
Another Iso2 小时前
CentOs 7 MySql8.0.23之前的版本主从复制
linux·mysql·centos
A7bert7772 小时前
【YOLOv8-obb部署至RK3588】模型训练→转换RKNN→开发板部署
linux·c++·人工智能·python·yolo
筑梦之路2 小时前
linux 系统找出磁盘IO占用元凶 —— 筑梦之路
linux·运维·服务器
LiQiang334 小时前
Ubuntu2404修改国内镜像
linux
杰哥技术分享4 小时前
Ubuntu 22.04安装SQL Server指南
linux·运维·ubuntu·sqlserver
遇见火星4 小时前
ubuntu18.04 升级Ubuntu 20.04
linux·运维·ubuntu·系统升级
x县豆瓣酱4 小时前
【第四节】ubuntu server安装docker
linux·ubuntu·docker
Gene_20224 小时前
【TOOL】ubuntu升级cmake版本
linux·运维·ubuntu