【发布时间】:2017-07-26 13:52:58
【问题描述】:
我希望 grafana 从 influxdb 获取数据。它们在同一台主机上运行。我在这里没有太多的快乐。
我在 influxdb 中开启了身份验证。我有一个带密码的管理员帐户,我可以使用这些凭据在命令行上连接到 influxdb。
当我尝试通过 grafana 连接时,我发现我可以选择“基本身份验证”或不选择。我不确定在基本身份验证中需要哪些凭据,但无论我是否选中该框,我都会在底部看到(不是很有帮助)错误。
我的 influxdb http 配置如下所示:
[http]
# Determines whether HTTP endpoint is enabled.
enabled = true
# The bind address used by the HTTP service.
bind-address = ":8086"
# Determines whether HTTP authentication is enabled.
# auth-enabled = false
auth-enabled = true
为了以防万一,我还尝试在 grafana 对话框中更改 s/localhost/0.0.0.0/,但这不会改变结果。
ubuntu@loire1:/tmp$ sudo netstat -tunapl | grep influx
tcp6 0 0 :::8086 :::* LISTEN 10399/influxd
tcp6 0 0 :::8088 :::* LISTEN 10399/influxd
udp 0 0 127.0.0.1:25826 0.0.0.0:* 10399/influxd
ubuntu@loire1:/tmp$
任何指针?
【问题讨论】:
-
同样的问题,如果你发现了什么,请回答这个问题
-
@Luv33preet - 我确实回答了。