Open iancote-ionq opened 4 days ago
Might be that the googlecloud exporter uses the StartTimestamp
which is unset and thus always the same. Could you maybe try with the attribute processor to copy the timestamp into starttimestamp and validate if that works?
Apologies for my ignorance, but how does one add a starttimestamp? I've found many ways to modify attributes, but timestamps seem to be above that level:
Here's a json sample: {"resourceMetrics":[{"resource":{},"scopeMetrics":[{"scope":{},"metrics":[{"name":"ping.rtt","unit":"ms","gauge":{"dataPoints":[{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441629004135281","asDouble":1.334812},{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441630005306713","asDouble":2.241777},{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441631004853906","asDouble":1.207437}]}},{"name":"ping.rtt.min","unit":"ms","gauge":{"dataPoints":[{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441631055550689","asDouble":1.207437}]}},{"name":"ping.rtt.max","unit":"ms","gauge":{"dataPoints":[{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441631055550689","asDouble":2.241777}]}},{"name":"ping.rtt.avg","unit":"ms","gauge":{"dataPoints":[{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441631055550689","asDouble":1.594675}]}},{"name":"ping.rtt.stddev","unit":"ms","gauge":{"dataPoints":[{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441631055550689","asDouble":0.460515}]}},{"name":"ping.loss.ratio","gauge":{"dataPoints":[{"attributes":[{"key":"net.peer.ip","value":{"stringValue":"8.8.8.8"}},{"key":" net.peer.name ","value":{"stringValue":"8.8.8.8"}}],"timeUnixNano":"1731441631055550689","asDouble":0}]}}]}]}]}
On Tue, Nov 12, 2024 at 8:51 AM Thomas Hamm @.***> wrote:
Might be that the googlecloud exporter uses the StartTimestamp which is unset and thus always the same. Could you maybe try with a processor to copy the timestamp into starttimestamp and validate if that works?
— Reply to this email directly, view it on GitHub https://github.com/thmshmm/icmpcheckreceiver/issues/2#issuecomment-2471057789, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJ4CMV2MVLMKQKKZHF3SU332AIWXZAVCNFSM6AAAAABRS5ZOVWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGA2TONZYHE . You are receiving this because you authored the thread.Message ID: @.***>
Hello! Thank you for working on this, I need something exactly like this.
When I try to export to googlecloud I'm getting errors like this:
If I set it to use something simple like the debug exporter, it seems fine.
I'm configuring otel like this (stripped down config for testing, the googlecloud part works fine for a number of other metrics and logs being sent now):
The metrics are showing up in GCP as expected though, just with the log noise. Any ideas?