Thanks @daniel ,
In the case where I want to pass only name_prefix = “uc-ops-duty-vcs” collectd metrics to a specific database, would I have to do an name_drop and a name_pass for each output? I pretty much only want the collectd metrics to go to a db called “uc-ops-duty-vcs” and the rest (default Linux sever telegraf collection - not shown) to the “telegraf” db.
Also, is there a way to label the data with a prefix to categorise it, but then not have that prefix show up as it will be a bit redundant as the database name would be the reference as to the data type?
Does this make sense?
[[inputs.socket_listener]]
# Receive collectd stats from VCS devices
service_address = "udp://0.0.0.0:25826"
name_prefix = "uc-ops-duty-vcs"
data_format = "collectd"
collectd_typesdb = ["/usr/share/collectd/types.db"]
[[outputs.influxdb]]
urls = ["http://tick-alln-001:8086"] # required
## The target database for metrics (telegraf will create it if not exists).
database = "telegraf" # required
namedrop = [uc-ops-duty-vcs*]
urls = ["http://tick-alln-001:8086"] # required
## The target database for vcs metrics.
database = "uc-ops-duty-vcs" # required
namepass = [uc-ops-duty-vcs*]