【问题标题】:Exclude Kubernetes Metrics monitoring in prometheus在 prometheus 中排除 Kubernetes Metrics 监控
【发布时间】:2021-09-12 03:24:53
【问题描述】:

我们正在通过 Prometheus 监控我们的 Kubernetes 集群指标。它工作正常,但我们不想监控所有默认指标。只想监控几个选定的指标。如何从 prometheus 中排除不需要的指标。

我们使用的是以下版本的 K8:

1.18.6

使用 helm chart 安装 Prometheus:

helm repo add prometheus-community https://prometheus-community.github.io/helm-chart

helm search repo prometheus-community-new/prometheus

helm install prometheus-community/prometheus --generate-name --namespace prometheus

我应该在 helm 在哪里禁用这些指标。

谢谢

【问题讨论】:

    标签: kubernetes prometheus kubernetes-helm prometheus-operator


    【解决方案1】:

    如何从 prometheus 中排除不需要的指标。

    使用您使用的命令,Helm 将应用所述图表的values.yaml 中定义的默认值。您想通过使用 Kubernetes service discovery 删除您不感兴趣的任何作业和/或根据您的需要调整 relabling 指令来重新定义(替换)serverFiles.prometheus.yml.scrape_configs 下的作业。

    【讨论】:

      猜你喜欢
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-31
      • 2020-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多