node_exporter 集成Prometheus+Grafana

一、配置Prometheus采集

bash 复制代码
nano /root/apisix-docker/example/prometheus_conf/prometheus.yml

========================末尾添加一段===================
  - job_name: "nodeexporter"
    scrape_interval: 5s
    metrics_path: "metrics"
    static_configs:
      - targets: ["192.168.31.135:9100"]
======================================================
#192.168.31.135:9100是Node Exporter地址

二、重启Prometheus

三、配置Grafana

进入Dashboards-->Manage-->Import

这里我们去Grafana网站找适配的图型模板

https://grafana.com/search/?term=node+export&type=dashboard&page=2

这里要注意一下,我这里Grafana版本是:7.3.7,所以在找模版时也要找匹配的版本

https://grafana.com/grafana/dashboards/12062-node-exporter/

复制ID:12062 导入

效果:

相关推荐
失散1312 分钟前
并发编程——17 CPU缓存架构详解&高性能内存队列Disruptor实战
java·缓存·架构·并发编程
only-qi5 小时前
146. LRU 缓存
java·算法·缓存
xuxie136 小时前
SpringBoot文件下载(多文件以zip形式,单文件格式不变)
java·spring boot·后端
重生成为编程大王6 小时前
Java中的多态有什么用?
java·后端
666和7776 小时前
Struts2 工作总结
java·数据库
中草药z6 小时前
【Stream API】高效简化集合处理
java·前端·javascript·stream·parallelstream·并行流
野犬寒鸦6 小时前
力扣hot100:搜索二维矩阵 II(常见误区与高效解法详解)(240)
java·数据结构·算法·leetcode·面试
zru_96026 小时前
centos 系统如何安装open jdk 8
java·linux·centos
LiRuiJie7 小时前
深入剖析Spring Boot / Spring 应用中可自定义的扩展点
java·spring boot·spring