Private AKS cluster, enabled outbound, metrics pod keeps failing
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, kubernetes, prometheus
- Domain
- cloud, infrastructure, observability-sre
Research direction
Start with the AKS managed Prometheus enablement and troubleshooting guides linked in the report, then inspect the ama-metrics pod logs and the UAMI, DCE, and DCR configuration. Done means identifying the configuration or connectivity cause of the failing metrics extension and documenting a reproducible fix or actionable diagnosis.
Written by the indexing model from the issue text.
Description
Hello,
I have private AKS cluster with open outbound connection and UAMI. I have tried to enable managed prometheus for metrics collections but it seems to fail. Can someone help? I followed this guide https://learn.microsoft.com/en-us/azure/azure-monitor/containers/kubernetes-monitoring-enable?tabs=cli
││ prometheus-collector Error: configmap section not mounted, using defaults
││ addon-token-adapter 2025/02/09 00:21:37 handlers.go:57: received token request, handling... ││ addon-token-adapter 2025/02/09 00:23:22 utils.go:35: received event type MODIFIED ││ addon-token-adapter 2025/02/09 00:24:51 handlers.go:57: received token request, handling... ││ addon-token-adapter 2025/02/09 00:25:22 utils.go:35: received event type MODIFIED ││ addon-token-adapter 2025/02/09 00:27:22 utils.go:35: received event type MODIFIED ││ addon-token-adapter 2025/02/09 00:29:22 utils.go:35: received event type MODIFIED ││ prometheus-collector Health check failed: 503, Message: Metrics Extension is not running (configuration exists) ││ prometheus-collector Metrics Extension is not running (configuration exists) ││ prometheus-collector Health check failed: 503, Message: Metrics Extension is not running (configuration exists) ││ stream closed EOF for kube-system/ama-metrics-5bff7d784d-mccqf (prometheus-collector)
││ prometheus-collector TokenConfig.json does not exist ││ prometheus-collector azmon-container-start-time file exists, reading start time ││ prometheus-collector Container has been running for 0 minutes ││ prometheus-collector 2025-02-09T00:33:05 No configuration present for the AKS resource ││ prometheus-collector TokenConfig.json does not exist ││ prometheus-collector azmon-container-start-time file exists, reading start time ││ prometheus-collector Container has been running for 0 minutes ││ prometheus-collector 2025-02-09T00:33:20 No configuration present for the AKS resource ││ addon-token-adapter 2025/02/09 00:33:22 utils.go:35: received event type MODIFIED ││ prometheus-collector TokenConfig.json does not exist ││ prometheus-collector azmon-container-start-time file exists, reading start time ││ prometheus-collector Container has been running for 1 minutes ││ prometheus-collector TokenConfig.json does not exist ││ prometheus-collector azmon-container-start-time file exists, reading start time ││ prometheus-collector Container has been running for 1 minutes
││ prometheus-collector Container has been running for 1 minutes ││ prometheus-collector {"time":1739061266.590147,"filepath":"/opt/microsoft/linuxmonagent/mdsd.err","log":"2025-02-09T00:34:26.5900480Z: [/__w/1/s/external/WindowsAgent/src/shared/mcsmanager/lib/src/RefreshConfigurations.cpp:318,GetAgentCon ││ prometheus-collector Metrics Extension is not running (configuration exists) ││ prometheus-collector Health check failed: 503, Message: Metrics Extension is not running (configuration exists) ││ prometheus-collector Metrics Extension is not running (configuration exists) ││ prometheus-collector Health check failed: 503, Message: Metrics Extension is not running (configuration exists) ││ prometheus-collector Metrics Extension is not running (configuration exists) ││ prometheus-collector Health check failed: 503, Message: Metrics Extension is not running (configuration exists)
I tried to look at https://learn.microsoft.com/en-us/azure/azure-monitor/containers/prometheus-metrics-troubleshoot to find solutions here but it did not help. for example
- Checked if UAMI has metric publish role
- DCE and DCR are created, not sure how they work though
- Dominant language
- PowerShell
- Stars
- 1.2k
- Forks
- 493
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/AzureMonitorCommunity
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 10/100
All issues in microsoft/AzureMonitorCommunity
Similar issues
-
Product: Azure Policy :shield: Topic: Diagnostic Settings :test_tube: Topic: Policy :pencil:
Difficulty 1/5 1-3 hours Newbie friendliness 92/100
Azure/Azure-Landing-Zones#4283 · 1 comment ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug zenodo
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Language: Terraform :globe_with_meridians: Needs: Triage :mag: Type: Bug :bug:
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Azure/terraform-azurerm-avm-res-containerregistry-registry#230 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100