Cambio versione a influxdb3 per usare InfluxQL per le query

This commit is contained in:
2025-05-31 15:48:46 +02:00
parent 5f34f3169a
commit 25536e0842
6 changed files with 51 additions and 56 deletions

View File

@@ -1,17 +1,20 @@
services:
influxdb2:
image: influxdb:2-alpine
container_name: edx-influxdb
influxdb3:
image: influxdb:3-core
container_name: edx-influxdb3
restart: unless-stopped
ports:
- 8086:8086
- 8181:8181
command:
- influxdb3
- serve
- --node-id=influxb-node0
- --object-store=file
- --data-dir=/var/lib/influxdb3
volumes:
- type: volume
source: influxdb2-data
target: /var/lib/influxdb2
- type: volume
source: influxdb2-config
target: /etc/influxdb2
source: influxdb3-data
target: /var/lib/influxdb3
grafana:
image: grafana/grafana:latest
@@ -22,22 +25,21 @@ services:
volumes:
- grafana-data:/var/lib/grafana
depends_on:
- influxdb2
- influxdb3
upsmon:
image: upsmon:latest
image: upsmon:influx3
container_name: edx-upsmon
restart: unless-stopped
depends_on:
- influxdb2
- influxdb3
devices:
- /dev/ttyUSB1:/dev/ttyUSB1
environment:
- INTERVAL=5
- INFLUXDB_TOKEN=b46xoZRVsQvyGnv8TVMmTDmxT8LZZsi7O_u776MHIxiE9CPh7yHi0iHMOerUT5o1y65MMxeKKA7S-ijQ3elK-g==
- INFLUXDB_URL=http://influxdb2:8086
- INFLUXDB_ORG=edelweiss
- INFLUXDB_BUCKET=theatre
- INFLUXDB_TOKEN=apiv3_tbEpA8JmIRTfr8Wbw9npD79BcMlFsnV4_jhdt-CdUP53Mos61KBODGaggl2g5oKZZvZrZu3e6mpob6zorhEdbg
- INFLUXDB_URL=http://influxdb3:8181
- INFLUXDB_DATABASE=edelweiss
- PORT=/dev/ttyUSB1
- BAUD=2400
- LOG_FILE=/tmp/upsmon.log
@@ -45,17 +47,16 @@ services:
- LOG_CLI_LVL=INFO
routermon:
image: routermon:latest
image: routermon:influx3
container_name: edx-routermon
restart: unless-stopped
depends_on:
- influxdb2
- influxdb3
environment:
- INTERVAL=5
- INFLUXDB_TOKEN=b46xoZRVsQvyGnv8TVMmTDmxT8LZZsi7O_u776MHIxiE9CPh7yHi0iHMOerUT5o1y65MMxeKKA7S-ijQ3elK-g==
- INFLUXDB_URL=http://influxdb2:8086
- INFLUXDB_ORG=edelweiss
- INFLUXDB_BUCKET=theatre
- INFLUXDB_TOKEN=apiv3_tbEpA8JmIRTfr8Wbw9npD79BcMlFsnV4_jhdt-CdUP53Mos61KBODGaggl2g5oKZZvZrZu3e6mpob6zorhEdbg
- INFLUXDB_URL=http://influxdb3:8181
- INFLUXDB_DATABASE=edelweiss
- MIKROTIK_IP=192.168.31.1
- MIKROTIK_USER=service
- MIKROTIK_PASSWORD=dataservice
@@ -68,3 +69,4 @@ volumes:
influxdb2-data:
influxdb2-config:
grafana-data:
influxdb3-data: