[英]Monitor Kubernetes Cluster from other Kubernetes cluster with Prometheus
是的,Prometheus 是一个非常灵活的监控解决方案,其中每个 Prometheus 服务器都能够充当另一个 Prometheus 服务器的目标。 使用 prometheus federation,Prometheus 服务器可以从其他 Prometheus 服务器中抓取选定的时间序列数据。
A typical Prometheus federation example configuration looks like this:
- job_name: 'federate'
scrape_interval: 15s
honor_labels: true
metrics_path: '/federate'
params:
'match[]':
- '{job="prometheus"}'
- '{__name__=~"job:.*"}'
static_configs:
- targets:
- 'source-prometheus-1:9090'
- 'source-prometheus-2:9090'
- 'source-prometheus-3:9090'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.