Re: [prometheus-users] Recording rule eval interval how longe should I can set? less than 5m?

2021-01-25 Thread Stuart Clark
On 25/01/2021 12:50, Allenzh li wrote: 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_ti

[prometheus-users] Recording rule eval interval how longe should I can set? less than 5m?

2021-01-25 Thread Allenzh li
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) (_cpu_usag