With telegraf, I have the system metrics writing to the “telegraf” database in InfluxDB. In [[inputs.exec]], I have a script which writes line protocol data pertaining to HTCondor, which I would like to go a database other than “telegraf”. How do I do that in telegraf.conf? I tried specifying “database = “otherdb”” in there but then telegraf complains and fails.
You configure the InfluxDB database in the influxdb output plugin. If you are sending metrics to more than one database then you should setup multiple influxdb output plugins and use the measurement filtering options to configure the data you wish to send.