It’s normal to send data from Telegraf to ==> InfluxDB without database credentials in telegraf.conf?
It was supposed to work in this 2 ways (with and without)?
Not sure I’m understanding correctly, but yes, you only need to set credentials for your InfluxDB if you have restricted your InfluxDB to certain users. By the way, the precision option on the InfluxDB no longer has any effect so you can remove it.
1. If I set the credentials for the database created in influxDB is ok, the data will be sent by telegraf to influxDB.
–telegraf.conf–
[[outputs.influxdb]]
urls = [“http://server2:8086”]
database = “database”
retention_policy = “”
write_consistency = “any”
timeout = “5s”
username = “user”
password = “password”
2. If I not set the credentials for database created in influxDB is also ok, the data will be sent by telegraf also to influxDB (previous example posted by me without credentials).
–telegraf.conf–
[[outputs.influxdb]]
urls = [“http://server2:8086”]
database = “database”
…
I’ve tested and have the both ways and it seems is working.
What do you think about this, is a normal behavior?
This would only be normal if the database does not have HTTP authentication turned on, do you have auth-enabled = true set on the http service in your influxdb.conf?
I didn’t know about this option, very interesting aspect.
It seems that is on “false” now.
What is your recommendation for good practices regarding this topic?