ubuntu 22.04 docker环境下安装:prometheus+graphna+node-reporter+cadvisor
·
-
先clone项目,进入项目后直接执行docker compose up --build -d 就已经可以完全运行起来了。
git clone https://gitee.com/linge365/docker-prometheus.git -
node-exporter 做的一些补充
虚拟机或物理机监控上报功能node-exporter实际部署时,不应该使用docker,而是访问下面的链接:
https://github.com/prometheus/node_exporter
下载最新版本的node_exporter,然后启动它:
nohup ./node_exporter --web.listen-address=:9101 2>&1 > node.log &
在prometheus中,添加如下更改即可。
- job_name: 'node-exporter'
scrape_interval: 5s
static_configs:
- targets: ['host-ip:9101']
labels:
instance: Prometheus服务器
对应graphna导入的模板ID为:1860
193 为docker cadvisor宿主机容器的监控模板
4701为jvm模版
参考:
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)