
使用Consul+consul-template动态更新Prometheus配置文件
在可以随时加入 ctmpl 配置文件,再通过consul-template监听指定的KV,动态更新Prometheus下的rules中的告警配置文件或者recording配置文件。修改 consul 中 prometheus/my_prometheus_yaml下的值,发现prometheus.yml 配置文件的值跟着修改。2).启动consul-template,指定template模板。1).新建ctmpl配置文件。










