Prometheus添加被监控端支持两种方式:
?静态配置:手动配置
?服务发现:动态发现需要监控的Target实例
支持服务发现的来源:
?consul_sd_configs
?openstack_sd_configs
?file_sd_configs
?kubernetes_sd_configs
基于consul的架构图:
Docker部署Consul:
docker run --name consul -d -p 8500:8500 consul
原文:https://www.cnblogs.com/jamespeng/p/14723263.html