Prometheus is built around returning a time series representation of metrics. In many cases, however, I only care about what the state of a metric is right now<
Given this:
namespace_metricname_count_sum{id="1",status="to-do"}
namespace_metricname_count_sum{id="1",status="in-progress"}
If you want to get the most recent value you need to use the value that has in common in this case is id=~".*"
by grouping the logs you will be able to get the last value in a time range
count ( max_over_time ( namespace_metricname_count_sum{id=~".*"}[12h])) by (status)