Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into temporality #15

Open
komuw opened this issue Nov 28, 2023 · 0 comments
Open

Look into temporality #15

komuw opened this issue Nov 28, 2023 · 0 comments

Comments

@komuw
Copy link
Owner

komuw commented Nov 28, 2023

Temporality refers to how additive measurements are reported in relation to time.
There are two temporalities;
(a) Delta
[t0, 5], [t0+10, 5], [t0+20, 10], [t0+30, 20], [t0+40, 5]
(b) Cumulative
[t0, 5], [t0+10, 10], [t0+20, 20], [t0+30, 40], [t0+40, 45]

You should prefer Cumulative.
Opentelemetry supports changing the temporality via an env var[5]. The default is cumulative

  1. https://grafana.com/blog/2023/09/26/opentelemetry-metrics-a-guide-to-delta-vs.-cumulative-temporality-trade-offs/
  2. https://opentelemetry.io/docs/specs/otel/metrics/data-model/#temporality
  3. https://opentelemetry.io/docs/specs/otel/metrics/supplementary-guidelines/#aggregation-temporality
  4. https://sodkiewiczm.medium.com/opentelemetry-parameter-that-might-ruin-your-flexibility-edf3aa0d290a
  5. https://opentelemetry.io/docs/specs/otel/metrics/sdk_exporters/otlp/#additional-configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant