Thanks, I have rewritten it with influxdb_client, but it did not help.
Script changes:
dictionary = dict()
dictionary['measurement'] = 'corsair'
dictionary['fields'] = dict()
for m in meas:
name = m["key"].replace(" ", "_").replace("+", "")
value = float(m["value"])
dictionary['fields'][name] = value
point = Point.from_dict(dictionary) # metric from dict
print(point.to_line_protocol()) # write to stdout
Other metrics are working. Not sure what you mean with field filters.
[agent]
## Default data collection interval for all inputs
interval = "30s"
## Rounds collection interval to 'interval'
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
round_interval = true
## Telegraf will cache metric_buffer_limit metrics for each output, and will
## flush this buffer on a successful write.
metric_buffer_limit = 1000
## Flush the buffer whenever full, regardless of flush_interval.
flush_buffer_when_full = true
## Collection jitter is used to jitter the collection by a random amount.
## Each plugin will sleep for a random time within jitter before collecting.
## This can be used to avoid many plugins querying things like sysfs at the
## same time, which can have a measurable effect on the system.
collection_jitter = "0s"
## Default flushing interval for all outputs. You shouldn't set this below
## interval. Maximum flush_interval will be flush_interval + flush_jitter
flush_interval = "10s"
## Jitter the flush interval by a random amount. This is primarily to avoid
## large write spikes for users running a large number of telegraf instances.
## ie, a jitter of 5s and interval 10s means flushes will happen every 10-15s
flush_jitter = "0s"
## Logging configuration:
## Run telegraf in debug mode
debug = true
## Run telegraf in quiet mode
quiet = false
## Specify the log file name. The empty string means to log to stdout.
logfile = "/Program Files/Telegraf/telegraf.log"
## Override default hostname, if empty use os.Hostname()
hostname = ""```
I have solved it. Somehow the plugin only sees the 12V measurement when running the script by Telegraf. The other entries are simply not there. Might have been because of some HID interactions when running as a service. Solved it differently (running the script directly, not via Telegraf)