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 导入

效果:

相关推荐
毕设源码-朱学姐1 天前
【开题答辩全过程】以 工厂能耗分析平台的设计与实现为例,包含答辩的问题和答案
java·vue.js
Spring AI学习1 天前
Spring AI深度解析(9/50):可观测性与监控体系实战
java·人工智能·spring
java1234_小锋1 天前
Spring IoC的实现机制是什么?
java·后端·spring
xqqxqxxq1 天前
背单词软件技术笔记(V2.0扩展版)
java·笔记·python
消失的旧时光-19431 天前
深入理解 Java 线程池(二):ThreadPoolExecutor 执行流程 + 运行状态 + ctl 原理全解析
java·开发语言
哈哈老师啊1 天前
Springboot学生综合测评系统hxtne(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。
java·数据库·spring boot
4311媒体网1 天前
帝国cms调用文章内容 二开基本操作
java·开发语言·php
zwxu_1 天前
Nginx NIO对比Java NIO
java·nginx·nio
可观测性用观测云1 天前
Pyroscope Java 接入最佳实践
java
气π1 天前
【JavaWeb】——(若依 + AI)-基础学习笔记
java·spring boot·笔记·学习·java-ee·mybatis·ruoyi