【问题标题】:Prometheus targets showing 403 for kubeletPrometheus 目标显示 kubelet 的 403
【发布时间】:2020-02-12 20:58:38
【问题描述】:

我使用 prometheus 来监控 pod 的 cpu 和网络使用情况。 但是像 cpu_usage_seconds 这样的指标没有出现在 prometheus 中。

当我检查 kubelet 目标已关闭时。

我正在使用 helm 的 stable/prometheus-operator:

【问题讨论】:

    标签: prometheus kubernetes-helm kubelet prometheus-operator


    【解决方案1】:

    有几种方法可以解决此问题:

    1. 检查权限、webhook 和 kube 控制器。详情可见here

    2. 检查您的防火墙规则是否没有阻止连接(在正确的端口上)。

    3. Prometheus 需要对所有集群组件具有读取权限才能获取指标。检查集群角色。

    4. 检查配置映射中的服务端点发现配置。

    5. 确保您使用的是最新的稳定版 Prometheus。

    如果有帮助,请告诉我。

    【讨论】:

      猜你喜欢
      • 2020-09-25
      • 2022-01-02
      • 2020-06-21
      • 1970-01-01
      • 2021-11-12
      • 1970-01-01
      • 1970-01-01
      • 2021-07-04
      • 2020-03-12
      相关资源
      最近更新 更多