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

效果:

相关推荐
J***516823 分钟前
SpringSecurity的配置
java
面汤放盐25 分钟前
软件架构指南 Software Architecture Guide
java·微服务·devops
tkevinjd25 分钟前
JUC5(线程池)
java·线程池·多线程·juc
Tao____26 分钟前
如何对接Modbus-tcp协议(使用Thinlinks物联网平台)
java·物联网·网络协议·tcp/ip·modbus
鱼跃鹰飞30 分钟前
经典面试题:K8S的自动缩扩容和崩溃恢复
java·容器·kubernetes
Coder_Boy_35 分钟前
Spring Boot 事务回滚异常 UnexpectedRollbackException 详解(常见问题集合)
java·spring boot·后端
青云交36 分钟前
Java 大视界 -- 基于 Java+Redis Cluster 构建分布式缓存系统:实战与一致性保障(444)
java·redis·缓存·缓存穿透·分布式缓存·一致性保障·java+redis clus
不知疲倦的仄仄37 分钟前
第五天:深度解密 Netty ByteBuf:高性能 IO 的基石
java·开源·github
xiaobaishuoAI40 分钟前
后端工程化实战指南:从规范到自动化,打造高效协作体系
java·大数据·运维·人工智能·maven·devops·geo
期待のcode43 分钟前
TransactionManager
java·开发语言·spring boot