[BUG] Unable to disable prometheus stack on cluster after adding azure container storage extension.
Describe the bug Unable to disable prometheus stack on cluster on which prometheus is already deployed after adding azure container storage extension.
To Reproduce Steps to reproduce the behavior:
- Enable azureContainerStorage extension.
- Disable prometheus stack using:
az k8s-extension update --cluster-type managedClusters --cluster-name <cluster_name> --resource-group <resource_group_name> --name azurecontainerstorage --config base.metrics.enablePrometheusStack=false
Expected behavior Prometheus stack should be removed and all resources should be deleted including CRD's.
Environment (please complete the following information):
- CLI Version 2.67.0
- Kubernetes version 1.31.2
Additional context There should be an option to disable prometheus stack while enabling azure container storage.
@muadnan , clarifying question - if the above command is being used to disable customer's own Prometheus instance or Azure Container Storage's Prometheus stack? The command is purposed to do the later.
@muadnan , clarifying question - if the above command is being used to disable customer's own Prometheus instance or Azure Container Storage's Prometheus stack? The command is purposed to do the later.
@saurabh0501 The above command is used to disable the kubePrometheusStack deployed by azureContainerStorage as mentioned in the documentation: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/storage/container-storage/enable-monitoring.md
@muadnan , clarifying question - if the above command is being used to disable customer's own Prometheus instance or Azure Container Storage's Prometheus stack? The command is purposed to do the later.
@saurabh0501 when I changed the config parameter base.metrics.enablePrometheusStack=false it is not actually reflected on the deployed helm release on the AKS. I tried changing other parameter:
base.metrics.metricsExporter.enabled=false
it is working fine. So, there is a bug due to which base.metrics.enablePrometheusStack=false not reflecting on deployed release of azureContainerStorage.
@olsenme @muadnan, we are currently working on a fix for this issue. We have root-caused the issue, and the fix will be available as part of the Azure Container Storage's next release. I will share more details once I have the plan available for our next release.
reopen
I have the same issue. I dont want the prometheus service from azurecontainerstorage but am not able to either disable it on installation or removing it afterwards