grafana/azure-monitor-datasource

No metrics for WebApps slots

gothvf opened this issue · 6 comments

If you use webapps slots the metrics are not pulled (only the webapp is)

xhrStatus:"complete"
request:Object
method:"GET"
url:"api/datasources/proxy/7/azuremonitor/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxxxxxx/providers/Microsoft.Web/sites/slots/xxxxxxxxxxxxxxxxxxx/xxxxxxx/providers/microsoft.insights/metricdefinitions?api-version=2017-05-01-preview"
response:Object
error:Object
code:"ResourceNotFound"
message:"The Resource 'Microsoft.Web/sites/slots' under resource group 'xxxxxxxxxxxxxxxxxxxxx' was not found."

Hi,
I'm very interested in solving that issue, if people can spend some time on IRC or Slack or email or whatever explaining me where i need to look to find how to solve the issue. I already know how to get the metric definitions for webapp slots in the Azure Monitor API and i think with some patching for that special cases we can solve that issue.

Who's with me on that ? @villekr ? @daniellee

There is a PR #45 that solve this issue. Can you merge it to master ? @daniellee Thanks a lot

DeV1L commented

Still not works
[root@zbx-01 ~]# grafana-cli plugins ls | grep azure grafana-azure-monitor-datasource @ 0.1.1
image

This fix is released in version 0.1.2.