# Restricting metrics ingested through Telegraf plugin

**URL:** <https://community.dynatrace.com/t/restricting-metrics-ingested-through-telegraf-plugin/41818>\
**Category:** Extensions\
**Tags:** telegraf, extensions\
**Created:** [September 28, 2023, 9:40am UTC](https://community.dynatrace.com/t/restricting-metrics-ingested-through-telegraf-plugin/41818 "2023-09-28T09:40:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 28, 2023, 9:40am UTC](https://community.dynatrace.com/t/restricting-metrics-ingested-through-telegraf-plugin/41818/1 "2023-09-28T09:40:43Z")

</div>

Telegraf comes with the Dynatrace Output Plugin that enables you to easily send Telegraf metrics to Dynatrace:

> **[Send Telegraf metrics to Dynatrace](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/ingestion-methods/telegraf)**
>
> Ingest Telegraf metrics into Dynatrace.

Does someone know if it’s possible to configure/restrict the metrics being sent to Dynatrace?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 28, 2023, 9:56am UTC](https://community.dynatrace.com/t/restricting-metrics-ingested-through-telegraf-plugin/41818/2 "2023-09-28T09:56:03Z")

</div>

The GitHub page has some more details and it seems it is not possible through the [[outputs.dynatrace]] configuration section: [telegraf/plugins/outputs/dynatrace at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/dynatrace)

Any ideas?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 28, 2023, 12:02pm UTC](https://community.dynatrace.com/t/restricting-metrics-ingested-through-telegraf-plugin/41818/3 "2023-09-28T12:02:25Z")

</div>

Looking further at the Telegraf configuration, it seems it can be done with “namepass”.

Anyone managed to limit data ingestion by this or other way?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [December 20, 2023, 10:53am UTC](https://community.dynatrace.com/t/restricting-metrics-ingested-through-telegraf-plugin/41818/4 "2023-12-20T10:53:53Z")

</div>

There are several ways of limiting the data ingestion, but it needs to be done on the Telegraf plugin side and not on Dynatrace. Telegraf supports a few different ways of filtering down the data, and namepass is indeed one of them. All of them, with examples, are documented here:&nbsp;[telegraf/docs/CONFIGURATION.md at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#metric-filtering)
