refresh_interval: 5m 说明:我们使用file_sd_configs模块代替static_configs模块,并指定files路径,并指定每5分钟prometheus重新加载该配置文件 2) 创建主机清单的JSON文件 代码解读 mkdir -p /usr/local/prometheus/targets/nodes/ cat >/usr/local/prometheus/targets/nodes/nodes.json<<EOF - targets: - "192.168....
192.168.247.51grafana-prometheus-014vcpu 8G 100G 部署:grafana+prometheus+node_export+process-export192.168.247.52consul-node-012vcpu 2G 100G 部署:consul+node_export+process-export192.168.247.53consul-node-022vcpu 2G 100G 部署:consul+node_export+process-export192.168.247.54consul-node-032vcpu 2G 100G ...