【问题标题】:How to integrate Prometheus with Kubernetes where both are running on different host?如何将 Prometheus 与运行在不同主机上的 Kubernetes 集成?
【发布时间】:2019-10-16 18:00:17
【问题描述】:

我的 prometheus 服务器在不同的服务器上运行。我还有另一个 Kubernetes 集群。因此,我需要使用运行在不同服务器上的 prometheus 来监控 kubernetes pod 指标。

【问题讨论】:

  • 到目前为止你尝试了什么。请提及。

标签: kubernetes prometheus


【解决方案1】:

要监控外部集群,我会利用 Prometheus federation 拓扑。

  • 在您的 Kubernetes 集群中安装 node-exporter pod 并为 Prometheus 配置短期存储。
  • 在 Kubernetes 集群之外公开 Prometheus 服务(您可以关注此 guide),这可以通过 LB 或节点端口来完成。
  • 配置 Prometheus 服务器以从 Kubernetes 端点抓取指标,并为它们配置正确的标签和适当的身份验证。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-10
    • 1970-01-01
    • 2020-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-14
    相关资源
    最近更新 更多