Prometheus运算符监视另一个Prometheus实例(来自不同群集)

问题描述 投票:1回答:1

我已经安装了Prometheus operator 0.34,它在群集A上可以正常工作现在我要使用federation,我的意思是从位于其他集群B上的其他Prometheus收集指标但我想念以下内容

  1. 在文档中有以下条目
  static_configs:
      - targets:
        - 'source-prometheus-1:9090'
        - 'source-prometheus-2:9090'
        - 'source-prometheus-3:9090'

集群B的实际普罗米修斯是什么?我应该为它创建服务吗?

  1. 在Prometheus运算符的values.yaml中,我应该添加配置?

  2. security-实际上如何能够在没有任何安全配置的情况下从集群B收集数据?

  3. 我没有找到任何有用的示例:(

更新:

  1. 位于群集Aprometheus operatorv0.34
  2. 我在集群B
  3. prometheus2.13.1

都通过头盔成功安装。

现在位于additionalScrapeconfig的文档中

在那里您看到- targets: ["localhost:9090"],但是我真的不了解它如何访问群集B

中的普罗米修斯,这令人困惑,因为它无法使用本地主机从群集x访问群集y。如何从集群B(prometheus)获取endpoint并以安全的方式在集群A(PrometheusOperator)的addionalScrapeConfig内部更新它...

我已经安装了Prometheus运算符0.34,它可以在集群A上正常工作,现在我想使用联合身份,我的意思是从位于其他集群B上的其他Prometheus收集度量,但是我...

kubernetes prometheus prometheus-operator
1个回答
1
投票
© www.soinside.com 2019 - 2024. All rights reserved.