Skip to content

Cannot view 1 minute rates on a 15 second scrape interval #9289

Discussion options

You must be logged in to vote

Hello. To understand why rate(cortex_request_duration_seconds_count[1m]) returns no results, we would need to see raw samples used for the computation.

You can see raw samples in Grafana by using 1) Instant query type, 2) using query: cortex_request_duration_seconds_count[$__range]. (In my example, I also used {namespace="mimir-dev-12"} to reduce number of returned series).

Given that rate(cortex_request_duration_seconds_count[2m]) returns data, most likely explanation is that there are not 2 samples in 1m window. (that is, your scrape interval is likely >= 1 minute).

cortex_request_duration_seconds_count has a data point every 15 seconds.
rate(cortex_request_duration_seconds_count[2m])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@braunsonm
Comment options

Answer selected by braunsonm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants