Toegang
- Standaard luistert InfluxDB 3 Core op:
http://<SERVER_IP>:8181 - Zorg ervoor dat de poort
8181/tcpis geopend bij toegang op afstand.
Authenticatie en tokens
- InfluxDB 3 Core maakt gebruik van authenticatie op basis van tokens.
- Maak het beheerders- (operator-)token aan:
influxdb3 create token --admin - Het symbool wordt slechts één keer weergegeven.
- Bewaar het op een veilige plek — het kan later niet meer worden teruggehaald.
Belangrijke bestanden en mappen
- Configuratiebestand:
/etc/influxdb3/influxdb3-core.conf - Gegevensmap:
/var/lib/influxdb3/data - Plug-inmap:
/var/lib/influxdb3/plugins - Systemd-service:
influxdb3-core
Servicemanagement
Stop de service:
systemctl stop influxdb3-core
Start de service:
systemctl start influxdb3-core
Start de service opnieuw op:
systemctl restart influxdb3-core
Status controleren:
systemctl status influxdb3-core
Logs bekijken:
journalctl -u influxdb3-core -f
Basisgebruik (CLI)
Beschikbare databases weergeven:
influxdb3 show databases --token <AUTH_TOKEN>
Gebruik de write opdracht om gegevens in te voeren:
influxdb3 write
--database <DATABASE_NAME>
--token <AUTH_TOKEN>
--precision s
'home,room=Living Room temp=21.1,hum=35.9,co=0i 1641024000
home,room=Kitchen temp=21.0,hum=35.9,co=0i 1641024000
home,room=Living Room temp=21.4,hum=35.9,co=0i 1641027600
home,room=Kitchen temp=23.0,hum=36.2,co=0i 1641027600
home,room=Living Room temp=21.8,hum=36.0,co=0i 1641031200
home,room=Kitchen temp=22.7,hum=36.1,co=0i 1641031200'
Voer SQL-query's uit op uw database:
influxdb3 query
--database <DATABASE_NAME>
--token <AUTH_TOKEN>
"SELECT * FROM home ORDER BY time"
