Enable Prometheus metrics scraping during AKS cluster creation.
I would like to have the ability to enable cluster-wide scraping of Prometheus metrics when I create an AKS cluster.
I am using management SDKs (.Net Core, Microsoft.Azure.Management.ContainerService) to create an AKS cluster. And I can enable log collection via AddonProfiles:
"addonProfiles": {
"omsagent": {
"config": {
"logAnalyticsWorkspaceResourceID": "/subscriptions/<WorkspaceSubscription>/resourceGroups/<DefaultWorkspaceRG>/providers/Microsoft.OperationalInsights/workspaces/<defaultWorkspaceName>"
},
"enabled": true
}
}
This will work similarly for ARM template as well.
It would be useful for me if I can enable cluster-wide scraping of Prometheus metrics directly from this configuration of omsagent.
@karok2m Currently we don't support enabling cluster-wide Prometheus metrics as the Add-on approach. However you can enable that post cluster creation as documented here. https://docs.microsoft.com/en-us/azure/azure-monitor/insights/container-insights-prometheus-integration
We take this as a feedback & consider this scenario as part of planning.
Yes, that is what I am using currently. But I want to be able to enable metrics scraping at cluster creation time, since configuration for enabling the agent is already there.
This issue has been automatically marked as stale because it has not had activity in 90 days. It will be closed if no further activity occurs. Thank you!
@saaror do you have any updates if this is on the roadmap?
We have this in our roadmap but please consider that to enable scrapping of all the Prometheus metrics out of the box will going to have cost implications. That being said we are also working on the cheaper storage solution from LA side so that should offset the cost issue.
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
This issue will now be closed because it hasn't had any activity for 15 days after stale. karok2m feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion.
Hi @karok2m , we recently announced Azure Monitor managed service for Prometheus https://learn.microsoft.com/en-Us/azure/azure-monitor/essentials/prometheus-metrics-overview which has the ability to scrape Prometheus metrics out of the box.