Closed blkperl closed 3 years ago
I've learned that prometheus filtering has an action: drop
that can be used to accomplish the same thing.
@blkperl I think it's a good suggestion and at times more trivial compared to adjusting the scrape config. But yes Prometheus allows dropping of metrics during scraping: https://www.robustperception.io/dropping-metrics-at-scrape-time-with-prometheus
Would there be any interest in new configuration that allows the users to choose which metrics are sent by the exporter? I can submit a pull request.
In my use case we have thousands of pods running php-fpm and we have exceeded our quota for metrics so we want to restrict the metrics sent to the ones that are needed.
I would also be interested in #84 being completed.