# Can we restrict Prometheus Metrics at Metricbeat?

**URL:** <https://discuss.elastic.co/t/can-we-restrict-prometheus-metrics-at-metricbeat/240499>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 9, 2020, 9:11am UTC](https://discuss.elastic.co/t/can-we-restrict-prometheus-metrics-at-metricbeat/240499 "2020-07-09T09:11:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jalpesh1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jalpesh1](https://discuss.elastic.co/u/Jalpesh1)\
**Post date:** [July 9, 2020, 9:11am UTC](https://discuss.elastic.co/t/can-we-restrict-prometheus-metrics-at-metricbeat/240499/1 "2020-07-09T09:11:45Z")

</div>

Hi Team,

Currently we have configured Metricbeat to integrate Prometheus with ElasticSearch .We are getting around 1,50,000 metrics per minute frequency .

Currently we don't need all metrics so can we restrict Prometheus Metrics at Metricbeat ? or can filter metrics at Metricbeat level?

Regards,  
Jalpesh

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [July 13, 2020, 7:17am UTC](https://discuss.elastic.co/t/can-we-restrict-prometheus-metrics-at-metricbeat/240499/2 "2020-07-13T07:17:16Z")

</div>

Hi!

For `remote_write` metricset it should be doable by defining a processor to drop metrics: [https://www.elastic.co/guide/en/beats/metricbeat/current/drop-event.html](https://www.elastic.co/guide/en/beats/metricbeat/current/drop-event.html)

For `collector` metricset we have filtering configuration available: [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-prometheus-collector.html#\_filtering\_metrics\_2](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-prometheus-collector.html#_filtering_metrics_2)

C.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 10, 2020, 9:17am UTC](https://discuss.elastic.co/t/can-we-restrict-prometheus-metrics-at-metricbeat/240499/3 "2020-08-10T09:17:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
