To get a bool value (0 or 1) add the "bool" qualifier, i.e. foo > bool bar
See: https://prometheus.io/docs/prometheus/latest/querying/operators/#comparison-binary-operators The and/or operators must match labels exactly, but using another operator like + or * you can match on different label sets: foo * on(endpoint,namespace,pod,service) bar Another approach is to use aggregate sum() or max() over them: e.g. sum by (endpoint,namespace,prod,service) (test_case_failed_count_1st) - this has the advantage that it will work even if there are multiple metrics with different summary_html_XXX flags for the same endpoint/namespace/prod/service combination. -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6fa75baa-a02e-48c4-abea-209813a075a8o%40googlegroups.com.

