# Prometheus Integration not scraping summary metrics

**URL:** <https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 30, 2024, 12:16pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083 "2024-01-30T12:16:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [January 30, 2024, 12:16pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083/1 "2024-01-30T12:16:14Z")

</div>

I opened a Github issue ([Add support for summary metrics, when collecting from Prometheus exporter · Issue #37376 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/37376)), which didn't any responses, so I will repost here. I opened it as enhancement issue, but I assume it is a bug, so please ignore the following template for enhancements:

Describe the enhancement:  
We are currently trying to use Elastic Agent and Metricbeat in connection with the Prometheus/Prometheus Input integration to scrape metrics from Sonatype Nexus3 Repository Manager (which provides a prometheus formatted metric endpoint [Support Features](https://help.sonatype.com/repomanager3/nexus-repository-administration/support-features#SupportFeatures-Prometheus)).

Some of the metrics are formatted like the following:

```auto
HELP org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer Generated from Dropwizard metric import (metric=org.sonatype.nexus.blobstore.file.FileBlobStore.get.timer, type=com.codahale.metrics.Timer) TYPE org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer summary org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer{quantile="0.5",} 5.9E-6 org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer{quantile="0.75",} 0.0060767 org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer{quantile="0.95",} 0.009478 org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer{quantile="0.98",} 0.009478 org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer{quantile="0.99",} 0.009478 org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer{quantile="0.999",} 0.009478 org_sonatype_nexus_blobstore_file_FileBlobStore_get_timer_count 481958.0"

```

When using the prometheus integration to scrape the whole endpoint, the metrics with types like summary are not indexed in Elasticsearch. If this is a bug, please convert the issue to a bug issue.

Metricbeat-logs:

```auto
18:21:20.133 elastic_agent.metricbeat [elastic_agent.metricbeat][info] Non-zero metrics in the last 30s 18:21:34.324 elastic_agent.metricbeat [elastic_agent.metricbeat][info] 'ca_trusted_fingerprint' set, looking for matching fingerprints 18:21:34.324 elastic_agent.metricbeat [elastic_agent.metricbeat][info] CA certificate matching 'ca_trusted_fingerprint' found, adding it to 'certificate_authorities' 18:21:34.327 elastic_agent.metricbeat [elastic_agent.metricbeat][debug] Completed dialing successfully 18:21:34.327 elastic_agent.metricbeat [elastic_agent.metricbeat][debug] Error reading from connection: read tcp AGENT_IP:PORT->ELASTICSEARCH_IP:9200: use of closed network connection 18:21:34.336 elastic_agent.metricbeat [elastic_agent.metricbeat][debug] PublishEvents: 1 events have been published to elasticsearch in 21.2452ms. 18:21:34.336 elastic_agent.metricbeat [elastic_agent.metricbeat][debug] ackloop: return ack to broker loop:1 18:21:34.336 elastic_agent.metricbeat [elastic_agent.metricbeat][debug] ackloop: done send ack

```

Maybe the above shown error has something to do with it (maybe metricbeat is running in a timeout?).

Describe a specific use case for the enhancement or feature:  
If you index metrics into elasticsearch, you do not want to get only half of them. Summary types should also be supported.

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [January 30, 2024, 12:17pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083/2 "2024-01-30T12:17:31Z")

</div>

My version is Elastic Agent 8.11.3 with the Prometheus Input Integration version 0.2.0

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [February 13, 2024, 2:29pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083/3 "2024-02-13T14:29:10Z")

</div>

still relevant

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [February 28, 2024, 3:28pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083/4 "2024-02-28T15:28:24Z")

</div>

still relevant

---

<div class="post-metadata">

**Author:** ![Alphayeeeet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alphayeeeet/32/126382_2.png) [@Alphayeeeet](https://discuss.elastic.co/u/Alphayeeeet)\
**Post date:** [March 12, 2024, 2:09pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083/5 "2024-03-12T14:09:26Z")

</div>

still relevant to prevent automatic closing

---

<div class="post-metadata">

**Author:** ![ishleenk17](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ishleenk17/32/107498_2.png) [@ishleenk17](https://discuss.elastic.co/u/ishleenk17)\
**Post date:** [March 12, 2024, 2:32pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083/6 "2024-03-12T14:32:09Z")

</div>

Looking into the issue. Thanks for creating a [public issue](https://github.com/elastic/integrations/issues/9265) as well. You can track the update there.

---

<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:** [April 9, 2024, 4:32pm UTC](https://discuss.elastic.co/t/prometheus-integration-not-scraping-summary-metrics/352083/7 "2024-04-09T16:32:55Z")

</div>

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