InfluxDB
Configuration
/etc/influxdb/influxdb.conf
[http]
auth-enabled = true
Management
Create a new user and database
influx
> CREATE USER admin WITH PASSWORD 'adminpass' WITH ALL PRIVILEGES
> exit
influx -username admin -password adminpass
> set password for admin = 'newpass'
>
> create database mmap_nmon
> create user mon with password 'thisispassword'
> grant all on mmap_nmon to mon
Login to InfluxDB
# In the shell
influx -username admin -password thisispass
# In the InfluxDB CLI
> auth
username:
password
Verify the account
curl -G http://localhost:8086/query -u mon:thisispassword --data-urlencode "q=SHOW DATABASES"
{"results":[{"statement_id":0,"series":[{"name":"databases","columns":["name"],"values":[["mmap_nmon"]]}]}]}
Services
systemctl start influxdb
systemctl enable influxdb