为 aks 容器重新配置 azure 托管 prometheus

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

aks 集群位于资源组 RG1 中。
我在 RG2 中配置了 Insights、azure 管理的 prometheus 和 azure 管理的 grafana。
然后我想将 prometheus 和 grafana 移到 RG1 中,与 aks 集群相同。

在此期间,我完全删除了所有资源和 RG2。
我在 RG1 中创建了一个新的 prometheus,尚未链接到任何 aks。

我想编辑aks的prometheus配置,使其现在指向新的prometheus,但我找不到任何方法来更新aks监控以指向RG1中的新prometheus,而它仍然指向RG2的旧prometheus,即使旧的prometheus和RG2本身已被删除.

我尝试禁用对 aks 的监控,但它仍然指向旧的 prometheus。

azure prometheus azure-aks azure-monitoring
1个回答
0
投票
  1. 使用 az aks disable-addons -a reporting -n -g 禁用见解

  2. 禁用 aks 的 prometheus: az aks update --disable-azure-monitor-metrics -n -g 和 az k8s-extension delete --name azuremonitor-metrics --cluster-name --resource-group --cluster-typeconnectedClusters 参考: https://learn.microsoft.com/en-us/azure/azure-monitor/containers/kubernetes-monitoring-disable

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