Refactor Models for InfluxDB (#1)

Update to InfluxDB 2.0 and update all interfaces to work with it.

MAC has been deprecated, since current `influxdb2` doesn't support non built-in types for read/write into the DB.

Co-authored-by: Felipe Diniello <felipediniello@pm.me>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2023-06-18 18:43:15 +02:00
parent a5976252e8
commit 962b90e1b8
22 changed files with 440 additions and 397 deletions

View File

@@ -24,29 +24,11 @@ services:
- /var/lib/influxdb
ports:
- 8086:8086
image: "influxdb:1.8.10"
image: "influxdb:latest"
environment:
- INFLUXDB_HTTP_AUTH_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=xHKvboa0Qlvhtg
- INFLUXDB_USER=mmRTLS
- INFLUXDB_USER_PASSWORD=Lkj9s2iAnd7Gxg
- INFLUXDB_DB=db0
# image: "influxdb:latest"
# environment:
# - DOCKER_INFLUXDB_INIT_MODE=setup
# - DOCKER_INFLUXDB_INIT_USERNAME=mmRTLS
# - DOCKER_INFLUXDB_INIT_PASSWORD=Lkj9s2iAnd7Gxg
# - DOCKER_INFLUXDB_INIT_ORG=glb
# - DOCKER_INFLUXDB_INIT_BUCKET=db0
# - DOCKER_INFLUXDB_INIT_CLI_CONFIG_NAME=default
# - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=xHKvboa0Qlvhtg
chronograf:
image: "chronograf"
container_name: "chronograf"
ports:
- 8888:8888
volumes:
- ./data/chronograf:/var/lib/chronograf
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=user
- DOCKER_INFLUXDB_INIT_PASSWORD=Lkj9s2iAnd7Gxg
- DOCKER_INFLUXDB_INIT_ORG=kario
- DOCKER_INFLUXDB_INIT_BUCKET=db0
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=82GAOBcdQoPnFNp_aew3DPffg44ihr4-lxs2BMGQ7RJ6nZyqSAFerX-WaHgLC47hTI23LgOauEfyTU_FKT0SpQ==