Install InfluxDB
sudo docker pull influxdbsudo docker run -d -p 8086:8086 -v influxdb:/var/lib/influxdb --name influxdb influxdbdocker exec -it influxdb influx
// This is a one line operation, you need to write one line and execute \\
create database sensors
create user "telegraf" with password 'telegraf'
grant all on sensors to telegraf
// with all of these, you have created a database named sensors and a username "telegraf" with password 'telegraf'\\Last updated
Was this helpful?