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面板

相关推荐
桌面运维家25 分钟前
KVM虚拟机:存储IO瓶颈诊断与Linux性能优化实战
linux·运维·性能优化
M1nat0_37 分钟前
Linux 基础 IO 全解析:从文件本质到重定向与缓冲区
linux·运维·服务器
l1t44 分钟前
在aarch64 Linux环境编译安装CinderX
linux·python
Lugas Luo1 小时前
SATA 协议报错信号与根因定位分析指南
linux·嵌入式硬件
野猪佩挤1 小时前
HPA自定义指标(通过请求数量扩缩)
kubernetes·prometheus
SuperHeroWu71 小时前
【Neo4j 】图数据库容器化部署(国内源,Linux 详细步骤)
linux·数据库·neo4j
小码吃趴菜1 小时前
服务器预约系统linux小项目-第五节课
linux·服务器·oracle
满天星83035771 小时前
【MySQL】表的约束
linux·数据库·mysql
FreeBuf_1 小时前
攻击者可通过恶意文件利用 Vim 漏洞执行任意命令
linux·编辑器·vim
cyber_两只龙宝1 小时前
【Nginx】Nginx中location的使用方法详解
linux·运维·nginx·云原生·php·web