AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Enable Prometheus metrics scraping during AKS cluster creation.

Open karok2m opened this issue 6 years ago • 8 comments

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 avatar Feb 05 '20 13:02 karok2m

@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.

saaror avatar Feb 12 '20 02:02 saaror

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.

karok2m avatar Feb 12 '20 09:02 karok2m

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!

stale[bot] avatar Jul 20 '20 18:07 stale[bot]

@saaror do you have any updates if this is on the roadmap?

palma21 avatar Jul 22 '20 09:07 palma21

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.

saaror avatar Jul 23 '20 00:07 saaror

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.

ghost avatar Oct 16 '20 08:10 ghost

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.

ghost avatar Oct 31 '20 13:10 ghost

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.

vdiec avatar Oct 24 '22 20:10 vdiec