Skip to content

[FEATURE] Prune Prometheus tags from scraping #285

@mukhtarkv

Description

@mukhtarkv

Is your feature request related to a problem? Please describe.
I have a problem that Grafana Alloy scrapes the same metrics at fixed interval. I want it to scrape only changed metrics. This effectively reduces Grafana Cloud costs where I exceed metrics usage coverage.

Describe the solution you would like to see
One workaround without dealing with Grafana Alloy is to implement removal of metrics from /metrics endpoint.

How would you expect this feature to work
It would be nice if metrics prune is provided as a library method. For example, Peep library provides prune_tags/2 method.

Additional context
Peep hexdocs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions