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

相关推荐
郝学胜-神的一滴17 小时前
Linux系统函数stat和lstat详解
linux·运维·服务器·开发语言·c++·程序人生·软件工程
Mr.亮先生17 小时前
常用、高效、实用的 Linux 服务器监控与运维工具清单
linux·运维·服务器
poemyang17 小时前
单线程如何撑起百万连接?I/O多路复用:现代网络架构的基石
linux·rpc·i/o 模式
鹿鸣天涯18 小时前
Wine 10.15 发布!Linux 跑 Windows 应用更丝滑了
linux·运维·windows
新手村领路人19 小时前
Ubuntu18.04 libc.so.6: version `GLIBC_2.28‘ not found问题
linux·ubuntu·pycharm
Lynnxiaowen19 小时前
今天我们继续学习python3编程之python基础
linux·运维·python·学习
hour_go20 小时前
Linux Shell 实验一:数据采集与脚本调试错误总结
linux·笔记·bash·shell·实验报告·错误排查
大海里的番茄20 小时前
随时随地看监控:我的UptimeKuma远程访问改造记
linux·网络
潇湘梦20 小时前
centOS防火墙操作
linux·运维·centos
Aubrey-J20 小时前
Linux中快速部署Elasticsearch(基础&TLS配置)
linux·服务器·elasticsearch