Skip to content

How to migrate to keenetic grafana monitoring v2 and Influx v2

Vitaliy Skrypnyk edited this page May 19, 2023 · 3 revisions

Update your influx

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>

Update your Grafana connection config

  • 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

Update your config.ini

  • 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