prometheus虚拟化安装脚本

在线安装下载链接:https://files.cnblogs.com/files/blogs/705493/online_prometheus.sh

离线安装下载链接:https://files.cnblogs.com/files/blogs/705493/prometheus.sh

 安装完成后需要修改prometheus.yml文件增加监控主机

static_configs:
- targets: ['localhost:9090']
- job_name: "linux"
scrape_interval: 5s
static_configs:
- targets: ['192.168.2.46:9100']
labels:
hostname: master

posted @ 2021-10-12 09:12  Jerry·  阅读(70)  评论(0)    收藏  举报