Search code examples
raspberry-pigrafanainfluxdb

Grafana gives error message' Server error' when trying to configure InfluxDB


I'm creating a new user. Still, Grafana gives me an error

pi@raspberrypi:~ $ influx
Connected to http://localhost:8086 version 1.8.0
InfluxDB shell version: 1.8.0
> CREATE USER "todd" WITH PASSWORD '123456'
> CREATE DATABASE toddDb
> quit
pi@raspberrypi:~ $ hostname -I
192.168.0.14

enter image description here

How do I get the frafana connection to InfluxDB working?

EDIT

my conf file /etc/influxdb/influxdb.conf is configured as following:

[http]

  # Determines whether HTTP endpoint is enabled.
  enabled = true

  # The bind address used by the HTTP service.
  bind-address = ":8086"

  # Determines whether user authentication is enabled over HTTP/HTTPS.
  auth-enabled = true

  # Determines whether the pprof endpoint is enabled.  This endpoint is used for
  # troubleshooting and monitoring.
  pprof-enabled = true

  # Enables authentication on pprof endpoints. Users will need admin permissions
  # to access the pprof endpoints when this setting is enabled. This setting has
  # no effect if either auth-enabled or pprof-enabled are set to false.
  pprof-auth-enabled = true

  # Enables authentication on the /ping, /metrics, and deprecated /status
  # endpoints. This setting has no effect if auth-enabled is set to false.
  ping-auth-enabled = true

Solution

  • Oh that was a ridiculous problem.

    In the URL field, the address needs to be prefixed with http://

    Either http://192.168.0.14:8086 or http://localhost:8086 worked

    enter image description here