# Metricbeat Prometheus module issue with same metric & multiple labels

**URL:** <https://discuss.elastic.co/t/metricbeat-prometheus-module-issue-with-same-metric-multiple-labels/157454>\
**Category:** Beats\
**Created:** [November 19, 2018, 10:43pm UTC](https://discuss.elastic.co/t/metricbeat-prometheus-module-issue-with-same-metric-multiple-labels/157454 "2018-11-19T22:43:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gianpietro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gianpietro/32/36744_2.png) [@gianpietro](https://discuss.elastic.co/u/gianpietro)\
**Post date:** [November 19, 2018, 10:43pm UTC](https://discuss.elastic.co/t/metricbeat-prometheus-module-issue-with-same-metric-multiple-labels/157454/1 "2018-11-19T22:43:22Z")

</div>

Hi, I'm using the Prometheus module to grab metrics from an exporter like the following and expose to a Kibana visualization.

For example, this one corresponds to "vdu\_name="web01-1-apache\_vdu-1"

```
# HELP osm_cpu_utilization OSM metric
# TYPE osm_cpu_utilization gauge
osm_cpu_utilization{ns_id="797ce9d2-2517-4e7e-b82d-66549f73fc65",vdu_name="web01-1-apache_vdu-1",vnf_member_index="1"} 80.7169069941

```

However, as soon as a simultaneous second metric of the same type arrives, with a different label (in this example, vdu\_name="web01-1-apache\_vdu-2") Metricbeat stops collecting!

```
# HELP osm_cpu_utilization OSM metric
# TYPE osm_cpu_utilization gauge
osm_cpu_utilization{ns_id="797ce9d2-2517-4e7e-b82d-66549f73fc65",vdu_name="web01-1-apache_vdu-2",vnf_member_index="1"} 80.4891191328

```

This is happening with all my Prometheus metrics when a second element arrives, the behavior is shown in Kibana as if the collection had stopped, and it keeps like that until I reload Metricbeat with having just one metric of each type.

This is how Kibana looks like:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5918986d290205c55c17cbc7c071f8d9b6ea73b.png)

Any clue? thanks in advance!

---

<div class="post-metadata">

**Author:** ![gianpietro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gianpietro/32/36744_2.png) [@gianpietro](https://discuss.elastic.co/u/gianpietro)\
**Post date:** [November 20, 2018, 11:12am UTC](https://discuss.elastic.co/t/metricbeat-prometheus-module-issue-with-same-metric-multiple-labels/157454/2 "2018-11-20T11:12:15Z")

</div>

I've noticed an issue with my exporter, which is adding new "types" for metrics of the same type, will check this out first and get back.

---

<div class="post-metadata">

**Author:** ![gianpietro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gianpietro/32/36744_2.png) [@gianpietro](https://discuss.elastic.co/u/gianpietro)\
**Post date:** [November 20, 2018, 5:40pm UTC](https://discuss.elastic.co/t/metricbeat-prometheus-module-issue-with-same-metric-multiple-labels/157454/3 "2018-11-20T17:40:16Z")

</div>

Problem was with the exporter, thanks anyway!

---

<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:** [December 18, 2018, 7:40pm UTC](https://discuss.elastic.co/t/metricbeat-prometheus-module-issue-with-same-metric-multiple-labels/157454/4 "2018-12-18T19:40:17Z")

</div>

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