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

InfluxDB Output repeats create database indefinitely if it fails to create it #7235

Closed
morfien101 opened this issue Mar 26, 2020 · 0 comments · Fixed by #7333
Closed

InfluxDB Output repeats create database indefinitely if it fails to create it #7235

morfien101 opened this issue Mar 26, 2020 · 0 comments · Fixed by #7333
Assignees
Labels
area/influxdb bug unexpected problem or unintended behavior
Milestone

Comments

@morfien101
Copy link
Contributor

[outputs.influxdb]
urls = ["https://influxdburl:8086"]
database = "metrics"
username = "DevUser"
password = "SuperSecret"
database_tag = "influx_database"
exclude_database_tag = true
precision = "s"
skip_database_creation = true

Expected behaviour:

Telegraf should check if it needs to create the database that it is about to write to, rather than blindly creating the database.

Actual behaviour:

When running telegraf with the influxdb output and the "database_tag" option, telegraf will try to create the database on every flush interval. If it fails to create that database it will keep trying forever and log the failure excessively. The write itself works but there is no context in the code between the two processes.

Additional info:

This is an example of the log that we get

telegraf 2020-03-26T10:57:26Z W! [outputs.influxdb] When writing to [https://influxdburl:8086]: database "metrics" creation failed: 403 Forbidden
@danielnelson danielnelson added area/influxdb bug unexpected problem or unintended behavior labels Mar 26, 2020
@danielnelson danielnelson added this to the 1.14.1 milestone Mar 26, 2020
@danielnelson danielnelson modified the milestones: 1.14.1, 1.14.2 Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/influxdb bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants