配置如下:prometheus在Linux本地,grafna部署在docker
单机版:https://blog.csdn.net/u013938578/article/details/118770025
控制台启动命令: ./prometheus —config.file=prometheus.yml —web.enable-lifecycle
后台启动:
#创建文件mkdir -p /applog/prometheus && touch /applog/prometheus/prometheus#方式一nohup ./prometheus --config.file=prometheus.yml --web.enable-lifecycle > /applog/prometheus/prometheus.log 2>&1 &
systemtl服务启动(文件夹位置要注意修改为/usr/local/prometheus)
https://blog.csdn.net/qq_32415063/article/details/105607008
错误点:
①Error fetching server time
解决办法:执行命令:ntpdate ntp.aliyun.com,刷新页面
@prometheus监控其他服务时,修改prometheus.yml文件格式对齐不争取,使用命令检查
添加其他服务时,ip不要写localhost,要给为服务器ip
./promtool check config prometheus.yml
https://blog.csdn.net/weixin_52837796/article/details/120762384
docker安装Grafana(3000端口图形化监控服务)
https://zhuanlan.zhihu.com/p/459837223(带有docker安装prometheus)
