如何通过OKD 4.14的openshift-monitoring命名空间中的cluster-monitoring-operator配置prometheus -k8s的thanos-sidecar

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

我管理一个 Openshift OKD 4.14 集群。

它带有内置的 Prometheus CRD: 它带有内置的 Prometheus CRD

这个 Prometheus CRD 启动一个有状态集: 在此输入图片描述

我需要配置thanos-sidecar容器并告诉它支持对象存储的S3存储桶(换句话说,我希望thanos-sidecar将指标文件上传到S3存储桶,特别是Rook-Ceph) 在此输入图片描述

据我所知,集群监控操作符(pod)负责更新整个堆栈,其中包括 Prometheus statefulset。有人知道如何通过 cluster-monitoring-config ConfigMap 配置 Thanos-sidecar 容器的结构和键吗?

$ cat cluster-monitoring-config.yaml api版本:v1 种类:ConfigMap 元数据: 名称:集群监控配置 命名空间:openshift-monitoring 数据: 配置.yaml: | 启用用户工作负载:true

我试图找到任何文档,也咨询了 AI,但我似乎找不到任何文档(显示正确的结构和密钥)让我能够通过以下方式配置 prometheus-k8s statefulset 的 Thanos-sidecar 容器Openshift OKD 4.14 的 openshift-monitoring 命名空间中的“cluster-monitoring-operator”。

请帮忙或提供一些建议。

我尝试直接更新内置 Prometheus CRD 内的 Thanos-sidecar 部分,但 Openshift OKD 会自动将配置恢复为原始设置(可能这是由 openshift 中的“cluster-monitoring-operator”pod 完成的)监控命名空间)。

openshift prometheus prometheus-operator okd thanos
1个回答
0
投票

您的问题收到答案了吗?

© www.soinside.com 2019 - 2024. All rights reserved.