Hi team,
I am new to the telegraf and I wondering if I can achieve this by Regex Processor or other Processor. My input is a statsd format metrics like this, where {job_name}_start is a dynamic filed and job_name can be some different values:
metrics_namespace.{job_name}_start:100|g
I can convert it to Influx message by telegraf statsd plugin with template "measurement.field”, so the InfluxDB protocol metrics would be
metrics_namespace, {job_name}_start = 100
I want o further parse field {job_name}_start so that the field can have static name called “job_start”, and ca have another tag called job_name, to hold actual {job_name} value. So the the metrics I want is:
metrics_namespace, job_start = 100, job_name = {job_name}
How can I achieve that? I try to use Regex Processor Plugin. But not sure how to generate new tag based on measurement name. Any help is much appreciated
Thanks a lot