webdevops / azure-metrics-exporter

Azure Monitor metrics exporter for Prometheus with dimension support, template engine and ServiceDiscovery
MIT License
124 stars 25 forks source link

Metrics for Azure.DataFactory #81

Open dploeger opened 6 months ago

dploeger commented 6 months ago

Maybe I don't yet understand the exporter enough, but I can't seem to fetch metrics for a DataFactory. The principal I use has permissions on the Datafactory, but this call doesn't return anything:

http://localhost:8080/probe/metrics/list?name=azure-metric&template={name}_{metric}_{aggregation}_{unit}&subscription=<our subscription id>&resourceType=Microsoft.DataFactory/datafactories&metric=FailedRuns,SuccessfulRuns&interval=PT1H&timespan=PT1H&aggregation=Count&metricTop=10

(I've used the web ui to create the url)

According to the Azure metrics documentation, the metrics should be valid.

Any ideas? Thanks!

dploeger commented 5 months ago

Hm. With a different timespan, I get results:

http://localhost:8080/probe/metrics/list?name=azure-metric&template={name}_{metric}_{aggregation}_{unit}&subscription=<our subscription id>&resourceType=Microsoft.DataFactory/datafactories&metric=FailedRuns,SuccessfulRuns&interval=PT1H&timespan=PT24H&aggregation=Count&metricTop=10

However, both metrics return 0 although in the Azure portal they return 3. Strange.