-
Notifications
You must be signed in to change notification settings - Fork 18
How to migrate to keenetic grafana monitoring v2 and Influx v2
Vitaliy Skrypnyk edited this page May 19, 2023
·
3 revisions
Sample:
influxdb:
image: 'influxdb:2.1.1'
volumes:
- ./_data/influxdb:/var/lib/influxdb
networks:
- monitor-net
- front-tier
environment:
- DOCKER_INFLUXDB_INIT_MODE=upgrade
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=<TOKEN>
- DOCKER_INFLUXDB_INIT_ORG=<ORG>
- DOCKER_INFLUXDB_INIT_BUCKET=db0
- DOCKER_INFLUXDB_INIT_RETENTION=365d
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=<TOKEN>
- Configuration -> Data sources -> Your instance
- Disable Basic auth
- Click add custom header
- Add header:
Authorization Token <TOKEN_VALUE>
"Token" word should be before the token value itself
Your dashboard should work and be compatible with existing queries
- Remove influxdb section
- Add influx2 section
[influx2]
url=<HOST>
org=<ORG>
token=<YOUR_TOKEN>
timeout=6000
bucket=keenetic/autogen
/autogen
suffix is important if you are migrated from InfluxDB v1