当尝试配置InfluxDB时,Grafana给出了错误信息 "服务器错误"。

问题描述 投票:0回答:1

我正在创建一个新用户。但是,Grafana还是给我一个错误

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

如何让frafana连接到InfluxDB工作?

编辑

我的conf文件 /etc/influxdb/influxdb.conf 配置如下。

[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
raspberry-pi grafana influxdb
1个回答
0
投票

哦,这是一个可笑的问题。

URL 字段,地址前需加注 http://

任何一种 http://192.168.0.14:8086http://localhost:8086 奏效

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.