# Telegraf ingested by elastic (via metricbeat?)

**URL:** <https://discuss.elastic.co/t/telegraf-ingested-by-elastic-via-metricbeat/316528>\
**Category:** Beats\
**Tags:** beats-module, metricbeat, infrastructure-observability\
**Created:** [October 13, 2022, 11:15am UTC](https://discuss.elastic.co/t/telegraf-ingested-by-elastic-via-metricbeat/316528 "2022-10-13T11:15:04Z")\
**Posts on this page:** 2\
**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:** [October 13, 2022, 11:15am UTC](https://discuss.elastic.co/t/telegraf-ingested-by-elastic-via-metricbeat/316528/1 "2022-10-13T11:15:04Z")

</div>

Hello, I have multiple services that have telegraf exposing the metrics of the service on port 9122 to show the metrics of what is running (sql, mongodb, etc) so basically I get the metrics by simply doing a get on SERVER:9122/metrics  
I would like to use metricbeat to read the metrics and ingest it into elasticsearch but I just can't find any module that would read telegraf,  
My last option would be to ingest in logstash and parse everything there, because it's a lot and there's so much I don't know on a what is really reporting

Anyone has done something like that?

The metrics from telegraf looks something like this:

```auto
# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
# TYPE go_memstats_stack_sys_bytes gauge
go_memstats_stack_sys_bytes 917504
# HELP go_memstats_sys_bytes Number of bytes obtained from system.
# TYPE go_memstats_sys_bytes gauge
go_memstats_sys_bytes 4.1664056e+07
# HELP go_threads Number of OS threads created.
# TYPE go_threads gauge
go_threads 18
# HELP mongodb_active_reads Telegraf collected metric
# TYPE mongodb_active_reads untyped
mongodb_active_reads{deployment="server1",host="server1",hostname="server1:27017",member_status="SEC",node_type="SEC",role="mongo",rs_name="productionserver01",state="SECONDARY",version="4.4.1"} 1
# HELP mongodb_active_writes Telegraf collected metric
# TYPE mongodb_active_writes untyped
mongodb_active_writes{deployment="productionserver1",host="server1",hostname="server1:27017",member_status="SEC",node_type="SEC",role="mongo",rs_name="productionserver01",state="SECONDARY",version="4.4.1"} 0
# HELP mongodb_aggregate_command_failed Telegraf collected metric
# TYPE mongodb_aggregate_command_failed untyped
mongodb_aggregate_command_failed{deployment="productionserver01",host="server1",hostname="server1:27017",member_status="SEC",node_type="SEC",role="mongo",rs_name="productionserver01",state="SECONDARY",version="4.4.1"} 0

```

I do not have direct access to mongodb or sql, that's why I can't use the modules mongodb or sql from metricbeat

Thanks

A

---

<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:** [November 10, 2022, 1:15pm UTC](https://discuss.elastic.co/t/telegraf-ingested-by-elastic-via-metricbeat/316528/2 "2022-11-10T13:15:38Z")

</div>

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