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

DB creation failed in Telegraf logs #13

Open
jpcapone opened this issue Jan 2, 2023 · 1 comment
Open

DB creation failed in Telegraf logs #13

jpcapone opened this issue Jan 2, 2023 · 1 comment

Comments

@jpcapone
Copy link

jpcapone commented Jan 2, 2023

I am modifying the telegraf.conf file to point to the influx db and I get the error below:

This is when i point to the ip of the influx db container:

[outputs.influxdb] When writing to [http://172.18.0.2:8086]: database "vmware" creation failed: Post "http://172.18.0.2:8086/query": dial tcp 172.18.0.2:8086: connect: connection refused
2023-01-02T23:16:33Z E! [outputs.influxdb] E! [outputs.influxdb] Failed to write metric (will be dropped: 401 Unauthorized):

This is when i point to the ip of the docker host:

[outputs.influxdb] When writing to [http://10.229.181.68:8086]: database "vmware" creation failed: Post "http://10.229.181.68:8086/query": read tcp 172.18.0.4:60732->10.229.181.68:8086: read: connection reset by peer
2023-01-02T23:17:27Z E! [outputs.influxdb] E! [outputs.influxdb] Failed to write metric (will be dropped: 401 Unauthorized): 

Any suggestions would be greatly appreciated.

@jpcapone
Copy link
Author

jpcapone commented Jan 6, 2023

If someone stumbles across this post - my problem was that i was attempting to configure the [[outputs.influxdb]] section instead of the [[outputs.influxdb_v2]] portion of the telegraf.conf file. this stack is predicated on the .env file variables correctly populating the v2 section based on your config. There was no need for me to edit the v1 section.

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

1 participant