Hi all!
Let me start with example so as to be clear. Please, look at the screenshot.

As you can see there are two metrics. One have value 0. Other have value 1. In this case we consider that all values at the certain time are equal to 0. Such a kind of logical AND (min(health_check)):

The final aim is to get average value over time. I tried this query:
avg_over_time(min(health_check)[7d])
But it fails with error message:
"1:32: parse error: ranges only allowed for vector selectors"
Could you say please how to deal with this?