RobustPerception / azure_metrics_exporter

Azure metrics exporter for Prometheus
Apache License 2.0
133 stars 70 forks source link

Azure Resource ID from portal must be tweaked when adding it to azure_resource config key. #34

Closed mariobede closed 5 years ago

mariobede commented 5 years ago

When picking up the azure resource id from the portal it adds extra information in the begnining, triggering a 404 when calling the api.

e.g: /subscriptions/xxxx-xxxx-xxxx/resourceGroups/service-rg/providers/Microsoft.ServiceBus/namespaces/servicebus

when it is expected by the exporter like this: /resourceGroups/service-rg/providers/Microsoft.ServiceBus/namespaces/servicebus

subscription/subscription-id bit is not needed, otherwise we get:

{"message":"No HTTP resource was found that matches the request URI 'https://management.azure.com/subscripti........

Suggestion, doc to be updated.

brian-brazil commented 5 years ago

Would you like to send a PR?

mariobede commented 5 years ago

Done