
This means that any user on login node 2 can call the
/bin/influx
command and modify databases. To restrict
this to only a privileged user, the admin needs to create an authorized user and enable basic authentication for
InfluxDB.
CAUTION: After creating the privilege user the Grafana data sources must to be updated to provide the
name and password for Grafana queries to InfluxDB to succeed.
To enable add an authorized user and enable basic authentication:
Procedure
1. Log on to login2 (login node 2) and become root.
2. Connect to InfluxDB and add a user named
admin
user and set its password.
#
/bin/influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB
server management, and monitoring.
Connected to http://localhost:8086 version 0.12.2
InfluxDB shell 0.12.2
> create user admin with password 'admin' with all privileges
> show users
user admin
admin true
3. Edit the
/etc/influxdb/influxdb.conf
file as root.
#
vi /etc/influxdb/influxdb.conf
< change auth to be true, save file, exit >
# systemctl restart influxdb
At this point Grafana dashboards will still work because Grafana is shipped with credentials for InfluxDB to be
user
admin
with
admin
as the password. If the privileged user differs from these defaults Grafana queries will
fail and graphs in dashboards will not work. To resolve this issue, log on to Grafana as the admin user and
open each data source, edit the InfluxDB details, updating the user and password to match that of the
privileged InfluxDB user.
For more information, visit
.
4.6
Update the InfluxDB Data Retention Policy
Prerequisites
This procedure requires root privileges. Before performing this procedure, use the
urika-state
command to
ensure that the system is operating in the service mode that supports using InfluxDB. For more information, see
the
urika-state
man page and refer to
on page 177.
System Monitoring
S3016
91