0

I setup InfluxDB 3 core via Docker and created an API key using influxdb3 create token --admin --host http://localhost:8181 using docker exec from inside the container. I then setup Chronograf also via Docker. My compose file looks like the following:

  influx:
    restart: always
    image: influxdb:3.0.1-core
    ports:
      - 8181:8181
    command:
      - influxdb3
      - serve
      - --node-id=node0
      - --object-store=file
      - --data-dir=/var/lib/influxdb3
    volumes:
      - /mnt/world/influxdb3:/var/lib/influxdb3
  chronograf:
    restart: always
    image: chronograf:1.10.7
    ports:
      - 8888:8888
    command:
      - chronograf
      - --influxdb-url=http://b3-compose-influx-1:8181
    volumes:
      - /mnt/world/chronograf:/var/lib/chronograf

b3-compose is the name of my compose project and I can resolve that hostname from within the chronograf container. However, when I attempt to run Chronograf, I get a connection error. Chronograf does have explicit Influxdb v2 support which can be configured here:

Screenshot of Chronograf configuration with Influx v2 selected

However, I always get an error and see the following in the Chronograf docker logs:

time="2025-05-05T04:06:59Z" level=info msg="Failed to retrieve database version" error="{\"version\":\"3.0.1\",\"revision\":\"d7c071e0c4\"}" url="http://b3-compose-influx-1:8181"

So it does look like Chronograf is trying to get the InfluxDB server version, but it doesn't know what to do with a JSON object showing the version as 3.0.1.

The comparability documentation for InfluxDB 3 says it supports Chronograf. The documentation also mention a v2 compatible API at /api/v2/, but If I try to append that path to the Chronograf configuration, I just get a 404 error.

Can Chronograf even be used with InfluxDB v3? There appears to be zero documentation on getting these two things to work together.

djsumdog
  • 1,130

0 Answers0