创建配置文件
- 新建目录prometheus,编辑配置文件prometheus.yml
[root@k8s-node1 ~]# mkdir /opt/prometheus [root@k8s-node1 ~]# cd /opt/prometheus/ [root@k8s-node1 prometheus]# vim prometheus.yml global: scrape_interval: 60s evaluation_interval: 60s scrape_configs: - job_name: prometheus static_configs: - targets: ['localhost:9090'] labels: instance: prometheus - job_name: linux static_configs: - targets: ['10.10.0.245:9100'] labels: instance: localhost
- 注意:修改IP地址,这里的10.10.0.245就是本机地址
- http://10.10.0.245:3000/
继续阅读
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
2020年6月11日 下午2:33 1F
登录回复
非常棒