microsoft / microsoft/AzureMonitorCommunity
Private AKS cluster, enabled outbound, metrics pod keeps failing
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1.2k
- Forks
- 493
- PR merge metrics
- No merged PRs in 30d
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
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.
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.
Assessment
- Tech stack
- azure, kubernetes, prometheus
- Domain
- cloud, infrastructure, observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100