InfluxDB: Unterschied zwischen den Versionen
Aus Hackerspace Ffm
(Die Seite wurde neu angelegt: „ == Installation == curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -<br> echo "deb https://repos.influxdata.com/debian stretch stab…“) |
|||
Zeile 2: | Zeile 2: | ||
== Installation == | == Installation == | ||
− | curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | + | curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - |
− | echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list | + | echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list |
− | sudo apt update | + | sudo apt update |
− | sudo apt install influxdb telegraf | + | sudo apt install influxdb telegraf |
− | sudo systemctl enable influxdb | + | sudo systemctl enable influxdb |
sudo systemctl start influxdb | sudo systemctl start influxdb | ||
+ | |||
+ | == Konfigurieren == | ||
+ | |||
+ | influx | ||
+ | |||
+ | > CREATE DATABASE openhab_db | ||
+ | > CREATE USER admin WITH PASSWORD '<passwort>' WITH ALL PRIVILEGES | ||
+ | > CREATE USER openhab WITH PASSWORD '<passwort>' | ||
+ | > CREATE USER grafana WITH PASSWORD '<passwort>' | ||
+ | > GRANT ALL ON openhab_db TO openhab | ||
+ | > GRANT READ ON openhab_db TO grafana | ||
+ | > exit |
Version vom 19. Juli 2018, 22:32 Uhr
Installation
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list sudo apt update sudo apt install influxdb telegraf sudo systemctl enable influxdb sudo systemctl start influxdb
Konfigurieren
influx > CREATE DATABASE openhab_db > CREATE USER admin WITH PASSWORD '<passwort>' WITH ALL PRIVILEGES > CREATE USER openhab WITH PASSWORD '<passwort>' > CREATE USER grafana WITH PASSWORD '<passwort>' > GRANT ALL ON openhab_db TO openhab > GRANT READ ON openhab_db TO grafana > exit