go - kapacitor不运行表明失败

标签 go influxdb telegraf kapacitor

帮助我的 apacitor 没有运行,实际上我在与 kapacitor 和 telegraf 相同的服务器上运行 influxdb,但是我的 kapacitor 不工作

kapacitor.service - Time series data processing engine.
   Loaded: loaded (/lib/systemd/system/kapacitor.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2019-01-03 17:56:38 UTC; 3s ago
     Docs: https://github.com/influxdb/kapacitor
  Process: 2502 ExecStart=/usr/bin/kapacitord -config /etc/kapacitor/kapacitor.conf $KAPACITOR_OPTS (code=exited, status=1/FAILURE)
 Main PID: 2502 (code=exited, status=1/FAILURE)

Jan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Service hold-off time over, scheduling restart.
Jan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Scheduled restart job, restart counter is at 5.
Jan 03 17:56:38 ip-172-31-43-67 systemd[1]: Stopped Time series data processing engine..
Jan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Start request repeated too quickly.
Jan 03 17:56:38 ip-172-31-43-67 systemd[1]: kapacitor.service: Failed with result 'exit-code'.
Jan 03 17:56:38 ip-172-31-43-67 systemd[1]: Failed to start Time series data processing engine..

最佳答案

我确实为自己找到了解决方案:

[[influxdb]]
enabled = true
name = "localhost"
default = true
urls = ["http://localhost:8086"]
username = "user"
password = "password"

你必须考虑到之前你需要在 influxdb 中创建一个用户

关于go - kapacitor不运行表明失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54027487/

相关文章:

sql - 如何使用 GORM 在 postgresql 中存储 ipv4 和 ipv6 地址

regex - influxdb查询: specify or filter tag by regex

linux - 从 telegraf 到 influxdb 的输入没有测量结果

telegram-bot - ctx.updateSubTypes Telgraf 4 的替代品

templates - 如何使用结构或变量值的字段作为模板名称?

Golang requestId 日志记录

go - 变量镜像其他

InfluxDB 和 Grafana 图表在 Y 轴导数上使用午夜为 0

windows - 如何在 Windows 操作系统上安装 influxdb 并访问管理控制台

telegraf - telegraf 文件输出的日志轮换