Problem: I’m using telegraf’s win_services plugin which has field “state” with values “1 2 3 4 5 6 7”. I want to add text explanation of this numbers as a tag. Example: if 4 > "Running" if 1 > "Stopped"
Can you help me to with an example config? I searched this question and found enum processor but I’m not sure if it’s the solution.
As far as I understand, enum works across the config file. I need it for only “win_services” measurement.
I wonder if I can set “state_label” as a tag instead of field while the “state” is field.
I’ve tried to combine “converter” with “enum” but no luck. Generated “state_label” field with enum then tried to convert it into a tag with “converter” but telegraf telegraf doesn’t run processor plugins in the order of their place in the config file. I’m not sure if I can create a pipeline in telegraf or is there a simpler way?
I don’t use flux for now. So, I want to add the tag into the data points itself.