I'm trying to define the E2E access availability of a service from a user PoV as the result of applying the bit-wise AND operation between two boolean instant vectors representing individual service availability.
I'm fetching the probe_success
results of pinging these two services (e.g. S1 and S2) from a "user node" with the blackbox_exporter
preinstalled:
+-------+ +---------------------+ +-------+
|S1 | | | | S2|
| | | User node with | | |
| +<----+ blackbox_exporter +---->+ |
| | icmp| |icmp6| |
+-------+ +---------------------+ +-------+
Since the targets are probed using different modules (icmp and icmp6) I'm using two jobs and therefore getting two instant vectors:
probe_success{job="S1", user="foo"}
# AND
probe_success{job="S2", user="foo"}
As I read on Prometheus (querying) logical operators docs, that logical and
is not exactly what I'm looking for. ¿Is there an easy way to perform these kind of "bit-wise" operations in PromQL?