configured scrape interval 5s

Doing query from UI :-

query_range?query=sum(rate(container_cpu_usage_seconds_total{pod_name=~'pod1'}[1m]))
 
/ sum(machine_cpu_cores{instance=~'^{instance1}$'}) * 
100&start={args.start}&end={args.end}&step={args.steps}

start = x1 and end = x2

case 1. step = 15s

{"status":"success","data":{"resultType":"matrix","result":[]}}

case 2. step 10s

{"status":"success","data":{"resultType":"matrix","result":[{"metric":{},"values":[[1588671276,"0.1"]]}]}}

case3. step 5s

{"status":"success","data":{"resultType":"matrix","result":[{"metric":{},"values":[[1588671276,"0.1"],[1588671281,"0"]]}]}}

not getting data at a 15s step but getting some data at step 10s or 5s ?

can anyone suggest which is best out of rate(), irate() and avg_over_time()  so 
that i should not miss my data?


-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/22a3a5d1-ea97-4e4e-b954-f82d0b295899%40googlegroups.com.

Reply via email to