Skip to content

Metrics appearing multiple times even if emitted once. #4412

Answered by utpilla
arijitsurmicrosoft asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like you're using ConsoleExporter which by default has a TemporalityPreference as Cumulative and not Delta. With Cumulative aggregation temporality, the MetricReader (ConsoleExporter in this case) would keep exporting the cumulated data for the metric with every collection. Metrics are reported for a certain duration. Note the start time and end time in the output. In case of Cumulative aggregation, the start time doesn't change and only the end time changes.

ConsoleExporter is only meant to provide you a fair idea of how the metrics data get emitted. There are a lot of backend systems that accept Cumulative aggregated data, the most prominent being Prometheus.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@arijitsurmicrosoft
Comment options

@arijitsurmicrosoft
Comment options

@cijothomas
Comment options

@cijothomas
Comment options

Answer selected by cijothomas
Comment options

You must be logged in to vote
1 reply
@arijitsurmicrosoft
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
3 participants