I want to count the average value of each hour of a metric and I have 
created a recording rule as follow:
```
    - name: inspection-platform-CVMAndPhysical
      interval: 1h
      rules:
        - record: vm:xxx_cpu_usage:avg1h
          expr: avg_over_time(avg by (label1, lable2) (xxxx_cpu_usage)[1h:])
```

When I make a range query request to the recording data with step > 5m, 
return empty.

I have google some case find that range query just eval 5m in every step.

So how should I use recording rule?

-- 
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/92e3ac6c-4b43-4976-81c6-fcde70c85c19n%40googlegroups.com.

Reply via email to