What you need to know
Arithmetic combines matching label sets; an unmatched input is not automatically treated as zero.
Potentially affected
Review default PromQL vector matching and deliberate one-to-one or many-to-one arithmetic relationships.
DSE recommendation
DSE recommends inspecting each side of a missing ratio independently before changing its arithmetic.
Arithmetic combines matching label sets; an unmatched input is not automatically treated as zero.
Source facts
Prometheus binary vector operations try to match entries across the two vectors. By default, series without a matching counterpart are excluded. The on and ignoring keywords control matching labels, while group_left and group_right support deliberate many-to-one or one-to-many cases. The output therefore depends on label relationships as well as numeric values.
Source: Prometheus documentation — Operators.
Applicability
Review default PromQL vector matching and deliberate one-to-one or many-to-one arithmetic relationships.
DSE recommendation
DSE recommends inspecting each side of a missing ratio independently before changing its arithmetic. Compare label names, values, aggregation levels, and expected cardinality. Decide which labels define the same logical entity and document that decision in the query. Avoid adding a group modifier merely to silence an error without checking whether the join duplicates or misattributes meaning. Keep absent-data handling separate from matching so a disappeared denominator does not silently become a reassuring result.
Verification
Use a test pair of vectors with matching, mismatched, and missing label combinations. Compare the output before and after the intended matching clause. Verify the result contains the expected entity count and labels, then confirm a deliberately absent input is surfaced according to the operational requirement. Retain each source vector and the final labels beside the query. Ask the service owner to reconcile the expected entity population with the output, including the case where an input exists but has no eligible counterpart.
Official reference
Prometheus documentation — Operators. Reviewed October 20, 2026.
Review the official source
Prometheus documentation — Operators · Verified October 20, 2026
Need help applying this guidance safely?
DSE can help confirm applicability, protect service continuity, and validate the result across physical security and IT systems.
Talk with DSE