I want to reset the histogram metric data every 5 seconds. #12795
-
After reducing the metric collection interval to 5 seconds, I'm observing that histogram metrics are not resetting to zero at the beginning of the next collection cycle. Is this correct? I want the metrics to start from zero every 5 seconds and measure data only for the next 5-second interval.
In conclusion, I want to reset the histogram metric data every 5 seconds.
However, the data is not being reset to zero between 5 and 10 seconds. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Have a look at https://opentelemetry.io/docs/specs/otel/metrics/data-model/#histogram Values are rest for each reporting cycle only when delta aggregation temporality is used. |
Beta Was this translation helpful? Give feedback.
See https://opentelemetry.io/docs/languages/java/configuration/#environment-variables-and-system-properties search for
otel.exporter.otlp.metrics.temporality.preference
I don't know whether there is any other way besides restarting your application