简体   繁体   English

向 influxdb 发送数据时,telegraf 是否会自动附加时间戳?

[英]Does telegraf automatically attach timestamp when sending data to influxdb?

I am using telegraf on several machines sending data to influxdb.我在几台向 influxdb 发送数据的机器上使用 telegraf。 However, I am not sure whether they attach the timestamp while sending.但是,我不确定他们是否在发送时附加时间戳。 Also, it is difficult to dump the packets for the connection is https.此外,很难转储连接的数据包是 https。 These machines may have large time offsets so I prefer to let influxdb add the timestamp when the data reaches it.这些机器可能有很大的时间偏移,所以我更喜欢让 influxdb 在数据到达时添加时间戳。 Is it possible?可能吗?

Telegraf automatically adds the current time to each data record it sends to telegraf. Telegraf 会自动将当前时间添加到它发送给 telegraf 的每个数据记录中。 When you have a look at the data sent (if telegraf's lineformat is used, which most output plugins do, including the default influxdb output plugin "outputs.influxdb"), it's the lengthy number at the end seperated by a space from the rest of the data, eg"1601292600000000000". When you have a look at the data sent (if telegraf's lineformat is used, which most output plugins do, including the default influxdb output plugin "outputs.influxdb"), it's the lengthy number at the end seperated by a space from the rest of数据,例如“1601292600000000000”。 That's nanoseconds from 1970-01-01T00:00:00 (also often referred as "Unix timestamp in nanoseconds").那是从 1970-01-01T00:00:00 开始的纳秒(也通常称为“Unix 时间戳,以纳秒为单位”)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何调试 Telegraf 不将数据从 MQTT 发送到 influxdb 的原因 - How to debug why Telegraf is not sending data from MQTT to influxdb 如何调试 Telegraf 为什么不将数据从 Openweathermap 发送到 influxdb - How to debug why Telegraf is not sending data from Openweathermap to influxdb 节点使用历史时间戳向 InfluxDB 发送数据 - Node Sending Data to InfluxDB with historical timestamp Telegraf 在将数据发送到 Influx 时使用时间戳,而不是在接收数据时使用时间戳? - Telegraf uses timestamp when data sent to Influx, not when data received? Telegraf 插件 - Telegraf 仅针对一个插件向 influxdb 发送数据 - Telegraf plugins - Telegraf send data to influxdb only for one plugin 为什么Telegraf向InfluxDB发送持续更新的statsd指标 - Why is telegraf sending continuously updating statsd metrics to influxdb 在Chronograf InfluxDB中无法看到带有正确时间戳记的数据 - Data written with correct timestamp does not get visualized in Chronograf InfluxDB 如何正确配置 Telegraf 以写入来自 MQTT 的 InfluxDB 数据 - How to properly configure telegraf to write into InfluxDB data coming from MQTT 使用Telegraf的涌入数据在Grafana上绘制CPU使用率% - Graphing CPU Usage % on Grafana using influxDB data from Telegraf Telegraf:如何在插入 influxdb 之前收集十六进制数据并应用 function? - Telegraf : How collect Hexadecimal data and apply function before insert in influxdb?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM