-
Hi everybody, I'm pretty new to opentelemetry, I hope this is the appropriate place to ask this. My situation: I need to monitor the evolution of a value every second, and would like to send the collected data every minute, but I need to have the details, I can't do any aggregation on the data. What I've already tried: I have found this section of the documentation that seems to be exactly what I'm looking for, but I can't find any examples using it, and when I looked in the code, it seems to be declared in push_metric_exporter.h but not implemented anywhere (other than in files inside the test directory). Also I haven't found any open issues that seem to be similar to mine. My current guess is that the function is not implemented yet, or maybe just not for metrics, but it would be super helpful to know for sure. Thank you very much for your attention! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Help me understand your use case better - you application is generating the measurement every second, and you want them to be exporter every minute. If that is the case, you can use the periodic metric reader which reads the metric data every minute. You application can either invoke Instrument::Record() every second, or create a callback with async instrument to be invoked every minute. |
Beta Was this translation helpful? Give feedback.
-
So you want to export the non-aggregated measurements every minute - this is not supported by OpenTelemetry specs. Each recorded measurement need to go through some aggregation. There are some discussions around that - open-telemetry/opentelemetry-specification#617. |
Beta Was this translation helpful? Give feedback.
So you want to export the non-aggregated measurements every minute - this is not supported by OpenTelemetry specs. Each recorded measurement need to go through some aggregation. There are some discussions around that - open-telemetry/opentelemetry-specification#617.