Question:
Given the following time series and assuming a scrape interval of 1m, what is the result of the query given below?
Series:
up{job="node", instance="node1"} 0 1 1 1 0
up{job="node", instance="node2"} 1 1 1 1 1
Query: count(up) by (job)
{job="node", instance="node1"} 5
{job="node", instance="node2"} 5
{job="node"} 2
{} 2
up{job="node", instance="node1"} 5
up{job="node", instance="node2"} 5