RobustPerception / azure_metrics_exporter

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

Reducing Azure API calls for tagged resources #69

Closed vincentcreusotfx closed 5 years ago

vincentcreusotfx commented 5 years ago

The tagged resource feature uses types to filter the metrics gathered correctly. The implementation was making several same call to the Azure API. I added a simple map to cache the result of the calls made for a tagName and tagValue to limit the number of unneeded calls made to the API.

vincentcreusotfx commented 5 years ago

@brian-brazil Changes made if you want to take a look

brian-brazil commented 5 years ago

Thanks!