Azure / prometheus-collector

Other
62 stars 36 forks source link

Running the az cli commands to enable prometheus metrics seems to have westeurope statically defined in the naming #603

Closed akata72 closed 11 months ago

akata72 commented 11 months ago

I have my Azure Monitor workspace and AKS cluster deployed in norwayeast.

When I run the command to enable monitoring and associate this workspace to the cluster;

az aks update --enable-azure-monitor-metrics -n $clusterName -g $clusterResourceGroupName --azure-monitor-workspace-resource-id $workspaceResourceId

It creates the dataCollectionEndpoint and datacollectionRules with westeurope in the name (but in the right location). image

I would expect the location to be retrieved from where the Azure monitor workspace is actually located (like in the bicep templates).

vishiy commented 11 months ago

hi thanks for raising this . what region is your resource group in ?

akata72 commented 11 months ago

The RG is in norwayeast (the cluster and azure monitor account as well).

vishiy commented 11 months ago

ok thanks. let me look and get back to you here. can you also post the cli version az version output here , when u get a chance , please ?

vishiy commented 11 months ago

Hi - i Just checked, and we have a mapping that we use for naming and that has westeurope. We will update the mappings as part of newly added regions soon. Thanks for reporting this issue.

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.

vishiy commented 11 months ago

Hi - we have a fix for this that will rollout in a few weeks. Thanks for reporting this.