Strong argument for exporting an OpenTelemetry Asynchronous UpDownCounter to OTLP as a non-monotonic sum rather than as a gauge?

From the OpenTelemetry Docs / Specs / OTel 1.37.0 / Metrics / Supplementary Guidelines:

Choosing the correct instrument is important, because: … It generates clarity to the semantic of the metrics stream, so the consumers have better understanding of the results. For example, if we want to report the process heap size, by using an Asynchronous UpDownCounter rather than an Asynchronous Gauge, we’ve made it explicit that the consumer can add up the numbers across all processes to get the “total heap size”.

I understand the semantic difference: an Asynchronous Gauge instrument reports non-additive values, whereas an Asychronous UpDownCounter instrument reports additive values.

Correspondingly, by default, Gauge and UpDownCounter instrument metrics are exported to OTLP differently, “preserving” some semantic difference: Gauge as a gauge, UpDownCounter as a sum (with is_monotonic: false).

From the OpenTelemetry Docs / Specs / OTel 1.37.0 / Metrics / Data Model / Metrics Data Model:

OpenTelemetry has identified three kinds of semantics-preserving Metric data transformation … The OpenTelemetry Metrics data model is designed to support these transformations … as a reprocessing stage inside the OpenTelemetry collector … [reaggregation details]

in OpenTelemetry Sums always have an aggregate function where you can combine via addition. So, for non-monotonic sums in OpenTelemetry we can aggregate (naturally) via addition. In the timeseries model, you cannot assume that any particular Gauge is a sum, so the default aggregation would not be addition.

Gauges do not provide an aggregation semantic, instead “last sample value” is used when performing operations like temporal alignment or adjusting resolution.

Based on all of that, I was expecting to find something in the OpenTelemetry Collector docs that would explicitly prevent reaggregation of OTLP gauge metrics by a sum function.

In fact, I see the opposite: statements in the OpenTelemetry Collector transform processor docs that appear to explicitly support reaggregation of gauge metrics by a sum function:

The following metric types can be aggregated:

  • gauge

Supported aggregation functions are:

  • sum

What answer can I offer to someone who asks me, “Why bother exporting values from Asynchronous UpDownCounter and Asynchronous Gauge instruments differently in OTLP? Why not just export them all in the OTLP as gauges?”

I’m stumped for an answer. “Because it generates clarity to the semantic of the metrics stream” sounds like weak sauce to me, since, for example, the Collector transform processor seems not to care whether it’s aggregrating gauges or sums.

I’m wondering: do some telemetry backends that ingest OTLP treat gauges and sums differently?

I see that New Relic maps both OTLP gauges and OTLP non-monotonic cumulative sums to the New Relic gauge. So, no difference in treatment there. That matches the collapsing/mapping to the timeseries model described in the OpenTelemetry docs. Do any backends not do the same? (Collapse/map both OTLP gauges and OTLP non-monotonic cumulative sums to the same type in the backend’s data model, whether or not that type is actually called “gauge”.)

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật