I need to scale values from my opcua_listener input and I found processor.scale plugin to do just that.
My config file looks like that:
[agent]
interval = “5s”
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = “0s”
flush_interval = “5s”
flush_jitter = “0s”
precision = “”
hostname = “”
omit_hostname = false
debug = true
logfile = “…”
When trying to run telegraf with that config I got error:plugin processors.scale: line 29: configuration specified the fields [“fields” “input_minimum” “input_maximum” “output_minimum” “output_maximum”], but they weren’t used
Tried different places in config; with different fields (offset/factor); with different values of fields and seems like processor just isnt working
Thank you, it’s working! My problem was with values as integer and not as floats.
But after that this fields seems like stopped working, looked at log and found that new values can’t be written to database since old data is integers and now I’m trying to write floats. Any way to change type of that field rather than nuke all previous data?
So, since there was no answer I’ll tell what I did to future struggling users.
I created new bucket and wrote new script to made new configs where every field processed with scaling factor (factor is 1.0 if I don’t need scaling).
After that I made selector for bucket in my visualisation to access previous values.