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
For binary expression, prometheus only set matching to null when one of the argument is literal, when both are vectorSelector, prometheus generates default matching: {"card": "one-to-one"}.
In our implementation, BinModifier is always set to null if no modifier provided.
The text was updated successfully, but these errors were encountered:
This might not be an issue at all, but to record different behaviour between our parser and prometheus default.
For this query statement, the output of prometheus 3.0
parse_query
ofprocess_virtual_memory_bytes / process_cpu_seconds_total
is like:The
matching
partIn our implementation,
BinModifier
is set to None in this case.There is a case when
matching
is set toNull
in prometheus:1 / process_cpu_seconds_total
Conclusion
For binary expression, prometheus only set
matching
to null when one of the argument is literal, when both are vectorSelector, prometheus generates defaultmatching: {"card": "one-to-one"}
.In our implementation,
BinModifier
is always set to null if no modifier provided.The text was updated successfully, but these errors were encountered: