# How to get metrics on telegraf endpoint

**URL:** <https://discuss.elastic.co/t/how-to-get-metrics-on-telegraf-endpoint/341092>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 18, 2023, 12:47pm UTC](https://discuss.elastic.co/t/how-to-get-metrics-on-telegraf-endpoint/341092 "2023-08-18T12:47:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Mightiev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_mightiev/32/62186_2.png) [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Post date:** [August 18, 2023, 12:47pm UTC](https://discuss.elastic.co/t/how-to-get-metrics-on-telegraf-endpoint/341092/1 "2023-08-18T12:47:19Z")

</div>

Hi,  
I'm trying to use metricbeat to read from a server that has exposed host:9050/metrics, in one of the metrics looks like

```auto
[...]
# HELP mongodb_active_reads Telegraf collected metric
# TYPE mongodb_active_reads untyped
mongodb_active_reads{deployment="production1",deployment1="production1",deployment2="production1",host="server1",hostname="mongodb1:27017",member_status="SEC",node_type="SEC",role="mongo-dms",rs_name="production-shared",state="SECONDARY",version="4.4.1"} 1
[...]

```

I enabled the module prometeus in metricbeat, but what I see in kibana is only metrics of cpu memory etc, nothing on mongodb.  
I can't use mongodb module because metribeat doesn't support 5.x version and I don't have access to the rs.status()  
Any idea how to get that?  
Thanks

---

<div class="post-metadata">

**Author:** ![Agi\_K\_Thomas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/agi_k_thomas/32/130842_2.png) [@Agi\_K\_Thomas](https://discuss.elastic.co/u/Agi_K_Thomas)\
**Post date:** [September 12, 2023, 6:04am UTC](https://discuss.elastic.co/t/how-to-get-metrics-on-telegraf-endpoint/341092/2 "2023-09-12T06:04:22Z")

</div>

Please consider using Prometheus input package. Reference : [Prometheus Input | Documentation](https://docs.elastic.co/integrations/prometheus_input)

---

<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:** [October 10, 2023, 8:04am UTC](https://discuss.elastic.co/t/how-to-get-metrics-on-telegraf-endpoint/341092/3 "2023-10-10T08:04:25Z")

</div>

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