为什么Telegraf没有运行?

问题描述

我尝试运行连接到Postgresql的Telegraf Docker映像。 当我将Telegraf作为具有相同配置文件的独立应用程序运行时,它将启动并运行。 但是当我在Docker中运行它时,我收到错误消息:

telegraf_1   | E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: Error parsing postgresql array,Undefined but requested output: postgresql

那是我的telegraf.config,怎么了?

[global_tags] 用户=“ $ USER” location =“ Buenos”

[代理] 间隔=“ 10s” round_interval = true metric_batch_size = 1000 metric_buffer_limit = 10000 collection_jitter =“ 0s” flush_interval =“ 10s” flush_jitter =“ 0s” 精度=“” 主机名=“” omit_hostname = false

将指标发送到Postgresql

[[outputs.postgresql]] connection =“ host = localhost:5542 user = postgres password = postgres”

table_template =“如果不存在则创建表{TABLE}({COLUMNS}); SELECT create_hypertable({TABLELIteraL},'time',chunk_time_interval:= INTERVAL'1 week',if_not_exists:= true);”

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)