-
Hi team :) I've been diving into the code for the PeriodicReader (see here). I noticed that the I'm trying to understand, after reading through the overall SDK code (pipelines, instruments, etc.), how does instrumented metric data in memory get flushed/replaced? Thanks a lot! Edit: Think I figured parts of it out!
Does this understanding seem correct? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Cumulative temporality means data from all collection cycles is exported. It is not flushed from memory due to this essential behavior it needs to provide. |
Beta Was this translation helpful? Give feedback.
-
Sorry for asking here, but I can't get this to work. I'm using Example Code1. Create the
|
Beta Was this translation helpful? Give feedback.
-
Sorry for replying via email if this is inconvenient to read.
Then could I use Gauge instead?Before using Otel sdk, I was using this to
achieve what I need.
Will try tomorrow, got off work today
Tyler Yahn ***@***.***> 于 2023年6月1日周四 22:19写道:
… Prometheus only works with cumulative temporality. I'm guessing you are
exporting to a collector that is then being scraped by Prometheus. The
collector is performing a delta-to-cumulative transform to ensure
Prometheus gets the correct data.
—
Reply to this email directly, view it on GitHub
<#3993 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEFQFD423QH72V76EZEDF3TXJCQGFANCNFSM6AAAAAAW4P2LXI>
.
You are receiving this because you commented.Message ID:
<open-telemetry/opentelemetry-go/repo-discussions/3993/comments/6061894@
github.com>
|
Beta Was this translation helpful? Give feedback.
Cumulative temporality means data from all collection cycles is exported. It is not flushed from memory due to this essential behavior it needs to provide.