Skip to content

I want to reset the histogram metric data every 5 seconds. #12795

Answered by laurit
zerocooldog asked this question in Q&A
Discussion options

You must be logged in to vote

but rather how to configure it in the OTEL Java Agent.

See https://opentelemetry.io/docs/languages/java/configuration/#environment-variables-and-system-properties search for otel.exporter.otlp.metrics.temporality.preference

The documentation explains that " The picture above denotes Delta temporality where accumulated event counts are reset to zero after reporting and a new aggregation occurs. Cumulative, on the other hand, continues to aggregate events, resetting with the use of a new start time."
in this context, how can I set the new start time?

I don't know whether there is any other way besides restarting your application

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zerocooldog
Comment options

@laurit
Comment options

Answer selected by zerocooldog
@zerocooldog
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants