raspberry-pi - Grafana 在尝试配置 InfluxDB 时给出错误消息“服务器错误”
问题描述
我正在创建一个新用户。尽管如此,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
解决方案
推荐阅读
- excel - 基于名称变量的导入文件循环
- c# - 如何在具有起始索引的字典中查找下一个 2 或 4 个空键
- python - 你如何计算 Python 中数组的平均值?
- swift - firebase Swift 中的查询排序
- excel - 提取按字母顺序排序的唯一不同列表并忽略范围中的空白
- kubernetes - 从 configMapRef 派生的 Kubernetes 容器环境变量的实时更新
- javascript - 如何解析带有特殊字符的 JSON?
- gcc - 如何使用宏检测 gcc compile -wrap 标志?
- perl - 使用 Win32::Env perl 模块,环境变量未在 Windows 中永久设置
- react-native - 在类 com.google.firebase.firestore.FieldValue$ServerTimestampFieldValue 上找不到要序列化的属性