Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support multiple [outputs.influxdb] or multiple database names in one [outputs.influxdb] #1918

Closed
wei-hai opened this issue Oct 19, 2016 · 2 comments

Comments

@wei-hai
Copy link

wei-hai commented Oct 19, 2016

Feature Request

Proposal:

support multiple [outputs.influxdb] or multiple databases in [outputs.influxdb] so that different input can write data to different database, for example, inputs.statsd can write data into statsd_db and inputs.docker can write data into database docker_db

Current behavior:

no way to do it unless you run multiple telegraf instances

Desired behavior:

one telegraf instance can inject data from different inputs into different databases in influxdb

Use case:

inputs.statsd supports template so user can name the measurement, if the measurement has the same name as other one created by different input then this measurement will be messy

@phemmer
Copy link
Contributor

phemmer commented Oct 19, 2016

See #1778, which has a few suggestions of how you can accomplish this.

@sparrc
Copy link
Contributor

sparrc commented Oct 19, 2016

@wei-hai if you put two brackets around it, multiple [[outputs.influxdb]] is already supported. see https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#output-configuration-examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants