This repository was 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
EOFUpdate and install:
yum update
yum install influxdb -yConfigure InfluxDB as follows:
vim /etc/influxdb/influxdb.confInto 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 influxdIf everything is fine, you can enter the influx terminal as follows:
influxBefore doing anything, you must define a password for the admin user.
CREATE USER admin WITH PASSWORD 'pass' WITH ALL PRIVILEGESTest the new password:
influx -username admin -password passFinally, 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;