Promxy 和 vmalert 都部署好了,但每次改配置都要 kubectl edit 或重新 apply YAML,能不能像 Operator 管 CRD 一样,改个 KV 就热加载?
可以。用 Consul KV + consul-template sidecar。
前期准备:统一改为 Consul 管理之前的状态:
Promxy:用它自己的 Helm chart(从 GitHub repo 拉取)单独部署,配置写死在 values.yaml 里
vmalert:由 victoria-metrics-k8s-stack 这个 Helm chart 自带,配置由 Operator ...
手里有两套监控集群——kube-prometheus-stack 和 VictoriaMetrics k8s-stack。想用一个 PromQL 入口同时查两边数据,Promxy 就是干这个的。
不存储数据,只做查询代理。收到 PromQL → scatter 到多个下游 → gather 合并结果 → 返回。
123Grafana → Promxy → Prometheus A → VM B → VM C
拉取chart、部署123456789101112131415161718192021222324252627#...
一直听说 VM 压缩率比 Prometheus 高 7 倍,手上正好有套 kube-prometheus-stack 跑在 Kind 集群,从零搭一套把告警链路跑通。
单机版部署与接入Prometheus123456789101112131415161718192021222324252627282930# clone helm chart,国内需要代理export http_proxy="http://192.168.10.238:7897"export https_proxy="http://192.168.10.238:7897"git cl...