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?
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.
1 Like
@jminardi thanks for sharing your solution with the community! We appreciate it!