Skip to content

Reduce amount of ARM calls to get metric definitions #1914

@tomkerkhove

Description

@tomkerkhove

Reduce number of ARM calls to get metric definitions allowing end-users to hit rate limiting less often.

Currently, every time we want to fetch the metrics for a given Azure resource we always:

  1. Get the list of available metric definitions
  2. Determine appropriate aggregation (based on config)
  3. Query metric for resource based on definition
  4. Interpret the metric value

Both step 1 & 3 are performing API calls while 1 will most likely provide the same result that was provided last execution. Because of that, we are caching the metric definitions for 1h.

Metadata

Metadata

Assignees

Labels

agents:scraperAll issues related to the scraping agentenhancementEnhancements for current featuresmetric-source:azure-monitorAll issues that relate to scraping metrics that depends on Azure Monitor as a data sourceperformancescrapingAll issues related to scraping

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions