aparo / opensearch-prometheus-exporter

OpenSearch Prometheus Exporter (fork of https://github.com/vvanholl/elasticsearch-prometheus-exporter)
Apache License 2.0
41 stars 17 forks source link

Possibility to exclude metrics #9

Open amirkkn opened 2 years ago

amirkkn commented 2 years ago

Our scenario is as follows.

We have a big list of elasticsearch indices and each http response from metrics endpoint that we receive, is around (~100MB) data and hence prometheus consumes lots of memory. Could you please add a possibility to exclude some metrics from scraping or somehow possibility to whitelist some metrics which we need?

We use opensearch 1.2.4 and exporter 1.2.4 on Kubernetes cluster.

I appreciate for any advice