# Stop telegraf from prefixing metric name with plugin name

**URL:** <https://community.influxdata.com/t/stop-telegraf-from-prefixing-metric-name-with-plugin-name/56731>\
**Category:** Telegraf\
**Created:** [March 12, 2025, 7:29pm UTC](https://community.influxdata.com/t/stop-telegraf-from-prefixing-metric-name-with-plugin-name/56731 "2025-03-12T19:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jminardi](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jminardi/32/16535_2.png) [@jminardi](https://community.influxdata.com/u/jminardi)\
**Post date:** [March 12, 2025, 7:29pm UTC](https://community.influxdata.com/t/stop-telegraf-from-prefixing-metric-name-with-plugin-name/56731/1 "2025-03-12T19:29:18Z")

</div>

I am using the opcua input plugin. I have its `name` set to `kepware`, and all my metric names are prefixed with `kepware_`. How can I prevent this? I just want the name specified in the node item in the nodes array to be used as the metric name. I tried setting the plugin name to “” but telegraf refused to start with a blank plugin name. I suppose I could use a processor plugin to strip the prefix but that seems like overkill to require run time compute to prevent this configuration issue.

Is there a way to prevent telegraf from prefixing the plugin name onto the metric?

---

<div class="post-metadata">

**Author:** ![jminardi](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jminardi/32/16535_2.png) [@jminardi](https://community.influxdata.com/u/jminardi)\
**Post date:** [March 13, 2025, 3:21pm UTC](https://community.influxdata.com/t/stop-telegraf-from-prefixing-metric-name-with-plugin-name/56731/2 "2025-03-13T15:21:29Z")

</div>

In my case this was actually happening on the TSDB end. I am using Victoria Metrics (which has an influx compatible ingest endpoint), and it was doing the mapping.

> - Field names are mapped to time series names prefixed with `{measurement}{separator}` value, where `{separator}` equals to `_` by default. It can be changed with `-influxMeasurementFieldSeparator` command-line flag. See also `-influxSkipSingleField` command-line flag. If `{measurement}` is empty or if `-influxSkipMeasurement` command-line flag is set, then time series names correspond to field names.

> **[VictoriaMetrics](https://docs.victoriametrics.com/#how-to-send-data-from-influxdb-compatible-agents-such-as-telegraf)**
>
> Documentation for VictoriaMetrics, VictoriaLogs, Operator, Managed VictoriaMetrics and vmanomaly

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [March 18, 2025, 9:26pm UTC](https://community.influxdata.com/t/stop-telegraf-from-prefixing-metric-name-with-plugin-name/56731/3 "2025-03-18T21:26:49Z")

</div>

@jminardi thanks for sharing your solution with the community! We appreciate it!
