This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
InfluxDB
Nicola Strappazzon C edited this page Oct 27, 2023
·
2 revisions
Add influx repository:
cat <<EOF | sudo tee /etc/yum.repos.d/influxdata.repo
[influxdata]
name = InfluxData Repository - Stable
baseurl = https://repos.influxdata.com/stable/\$basearch/main
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdata-archive_compat.key
EOF
Update and install:
yum update
yum install influxdb -y
Configure InfluxDB as follows:
vim /etc/influxdb/influxdb.conf
Into config file /etc/influxdb/influxdb.conf
, enable HTTP support and auth, change the default value max-values-per-tag = 100000
to max-values-per-tag = 0
.
...
[http]
enabled = true
bind-address = ":8086"
auth-enabled = true
...
[data]
...
max-values-per-tag = 0
...
...
Enable and start service and verify the status:
systemctl enable influxdb
systemctl start influxdb
systemctl status influxd
If everything is fine, you can enter the influx terminal as follows:
influx
Before doing anything, you must define a password for the admin user.
CREATE USER admin WITH PASSWORD 'pass' WITH ALL PRIVILEGES
Test the new password:
influx -username admin -password pass
Finally, create a database and a user to be used by zenit
:
CREATE DATABASE zenit;
CREATE USER zenit WITH PASSWORD 'zenit';
GRANT ALL ON zenit TO zenit;
SHOW DATABASES;