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

相关推荐
婷儿z28 分钟前
云原生环境 Prometheus 企业级监控实战
云原生·prometheus
CAE虚拟与现实1 小时前
调度系统部署架构是什么样的呢?
linux·运维·服务器·架构·集群队列·计算节点
小孙姐2 小时前
Linux-Day14.自动批量装机
linux·运维·服务器
IvanCodes5 小时前
十二、Linux Shell脚本:正则表达式
linux·运维·正则表达式
CodeDevMaster6 小时前
Linux中tmux入门使用指南:告别SSH断线烦恼,提升终端工作效率的神器
linux·运维·ssh
Brandon汐7 小时前
在Linux中部署tomcat
linux·运维·tomcat
sniper_fandc7 小时前
VirtualBox虚拟机网卡配置
linux·网络·虚拟机
白鸽梦游指南7 小时前
RHCE模拟测试
linux·运维·服务器
不会吉他的肌肉男不是好的挨踢男7 小时前
Linux生成自签名 SSL 证书(适用于测试或内部使用)
linux·运维·ssl
飘忽不定的bug8 小时前
linux磁盘加密
linux·开源