【问题标题】:Grafana gives error message' Server error' when trying to configure InfluxDBGrafana 在尝试配置 InfluxDB 时给出错误消息“服务器错误”
【发布时间】:2020-05-22 13:33:05
【问题描述】:

我正在创建一个新用户。尽管如此,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

如何使与 InfluxDB 的 frafana 连接正常工作?

编辑

我的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

【问题讨论】:

  • 能否请您配置localhost:8086作为URL并检查?
  • @hariK 更改为 localhost 时出现错误:Network Error: Bad Gateway(502) InfluxDb 和 grafana 安装在 raspberry (192.168.0.14) 上。我正在使用笔记本电脑 (192.168.0.13) 在浏览器中访问 UI。在我上面的问题中,我在我的 HTTP 配置中进行了编辑。
  • 我也可以说从 Node-Red 我可以从 InfluxDB 查询数据。我不知道问题出在哪里

标签: raspberry-pi grafana influxdb


【解决方案1】:

哦,那真是个可笑的问题。

URL字段中,地址需要以http://

为前缀

http://192.168.0.14:8086http://localhost:8086 工作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-12-21
    • 2018-05-20
    • 2013-08-28
    • 1970-01-01
    • 1970-01-01
    • 2016-11-08
    • 2015-02-18
    • 1970-01-01
    相关资源
    最近更新 更多