Is it possible to send to Input Metrics to different Databases? Example a single Telegraf configured to send SNMP to database “A”, send IPMI to database “B” and Vsphere to database “C”. Currently I have this happening by setting up 3 different “collector” virtual machines. It would be nice just to have it in a single machine.
The 3 current best workarounds are:
- use name_override, name_suffix, or name_prefix config options to prepend names to your measurements on the input-side, then use namepass to route to outputs, ie:
[[inputs.exec]] # ... name_prefix = "exec1_" [[inputs.exec]] # ... name_prefix = "exec2_" # this influxdb will only get exec1 [[outputs.influxdb]] # ... namepass = "exec1_*" # this will only get exec2 [[outputs.influxdb]] # ... namepass = "exec2_*"
- Use tags, tagdrop, tagpass routing
- Run multiple telegraf processes.