Skip to content

Error writing out of order points to Stackdriver output #5364

@Legogris

Description

@Legogris

Relevant telegraf.conf:

[agent]
    interval = "30s"
    round_interval = true
    flush_interval = "60s"
    flush_jitter = "0s"
    debug = false
    hostname = ""

System info:

Telegraf 1.9.0 (git: HEAD 2bf21c0)
OS: Amazon Linux (4.14.77-81.59.amzn2.x86_64 #1 SMP Mon Nov 12 21:32:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux)

Stackdriver requires points to be written in order - it seems that this is not guaranteed by the stackdriver output plugin:

2019-01-29T00:30:00Z E! [output.stackdriver] unable to write to Stackdriver: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:30:00Z E! [agent] Error writing to output [stackdriver]: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:31:00Z E! [output.stackdriver] unable to write to Stackdriver: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:31:00Z E! [agent] Error writing to output [stackdriver]: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:32:00Z E! [output.stackdriver] unable to write to Stackdriver: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:32:00Z E! [agent] Error writing to output [stackdriver]: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:33:00Z E! [output.stackdriver] unable to write to Stackdriver: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:33:00Z E! [agent] Error writing to output [stackdriver]: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:34:00Z E! [output.stackdriver] unable to write to Stackdriver: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T00:34:00Z E! [agent] Error writing to output [stackdriver]: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0

For hosts with higher number of metrics, we also see this quite a bit:

2019-01-29T08:57:00Z W! [agent] output "stackdriver" did not complete within its flush interval
2019-01-29T08:59:00Z W! [agent] output "stackdriver" did not complete within its flush interval
2019-01-29T09:10:00Z W! [agent] output "stackdriver" did not complete within its flush interval
2019-01-29T09:12:00Z W! [agent] output "stackdriver" did not complete within its flush interval
2019-01-29T09:15:00Z W! [agent] output "stackdriver" did not complete within its flush interval
2019-01-29T09:17:00Z W! [agent] output "stackdriver" did not complete within its flush interval
2019-01-29T09:25:59Z E! [output.stackdriver] unable to write to Stackdriver: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T09:25:59Z E! [agent] Error writing to output [stackdriver]: rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Points must be written in order. One or more of the points specified had an older end time than the most recent point.: timeSeries[0]
2019-01-29T09:44:00Z W! [agent] output "stackdriver" did not complete within its flush interval

Don't know if this is related to #2099 or not.

Metadata

Metadata

Assignees

Labels

area/gcpGoogle Cloud plugins including cloud_pubsub, cloud_pubsub_push, stackdriverbugunexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions