You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the aggregation temporality is cumulative and the sum is monotonic, it MUST be converted to a Prometheus Counter.
If the aggregation temporality is cumulative and the sum is non-monotonic, it MUST be converted to a Prometheus Gauge.
If the aggregation temporality is delta and the sum is monotonic, it SHOULD be converted to a cumulative temporality and become a Prometheus Sum. The following behaviors are expected:
The new data point type must be the same as the accumulated data point type.
The new data point's start time must match the time of the accumulated data point. If not, see detecting alignment issues.
OpenTelemetry Histograms with Delta aggregation temporality SHOULD be aggregated into a Cumulative aggregation temporality and follow the logic above, or MUST be dropped.
Basically, we need to either convert delta -> cumulative, or drop the metrics.
It is also definitely possible that i'm mistaken and it isn't possible for delta metrics to be passed to the Prometheus exporter. In that case, we should probably remove the aggregation temporality check from the metric -> type logic.
The text was updated successfully, but these errors were encountered:
It is also definitely possible that i'm mistaken and it isn't possible for delta metrics to be passed to the Prometheus exporter.
This. Cumulative temporality for all instruments is specified here. It will be possible for MetricProducers other than the SDK to ignore the temporality, but the Prometheus reader won't be required to do anything about it:
The MetricReader is not required to ensure data points from a non-SDK MetricProducer are output in the configured aggregation temporality, as these data points are not collected using OpenTelemetry instruments.
Thanks. Based on the prometheus spec above, I would still expect delta temporality metrics to be dropped in the exporter. At minimum, I wouldn't expect delta sums to be converted to gauges. But this is moot until after #5011
Describe the bug
The prometheus exporter appears to convert sums with aggregation temporality delta to gauges, and appears to ignore temporality for histograms.
What did you expect to see?
The spec for Sums says:
The spec for Histograms says:
Basically, we need to either convert delta -> cumulative, or drop the metrics.
It is also definitely possible that i'm mistaken and it isn't possible for delta metrics to be passed to the Prometheus exporter. In that case, we should probably remove the aggregation temporality check from the metric -> type logic.
The text was updated successfully, but these errors were encountered: