Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
AKS CoreDNS + Azure Prometheus - can't see metrics in log analytics #1364
I applied following oms config as configmap and only changed this row:
I can see metrics config when running curl on coredns pod:
I also deployed nginx ingress controller and can see it's metrics just fine in log analytics
I'm using following Kusto command to check for metrics:
Also have the same issue
Seeing these logs on oms agent
Seems like not finding prometheus config map
I solve this in AKS for a adhoc deployment of Prometheus. My problem was that CoreDNS metrics were not being scraped by Prometheus. I was able to get atleast the in cluster deployment of Prometheus by adding prometheus.io/scrape: "true" annotation to the coredns deployment under .spec.template.metadata.annotations. Adding the annotation will causes the deployment to perform a rolling update. This change would be lost on the next CoreDNS upgrade if this is not fixed by Azure.
Previously, only prometheus.io/port: "9153" was in the annotations. prometheus.io/scrape: "true" was not.
This may/may not work for this issue. Putting the solution out there in hopes that it helps. but this is not a permanent solution. The awesome AKS team would have to fix it.
I have bumped into this as well.
To have metrics sent to Azure Monitor, we need to add
Would be cool to have CoreDNS metrics sent to ContainerInsights out of box.