問題文
A graph of rate(http_requests_total[1m]) shows long empty stretches. The scrape interval for that job is 60 seconds. What is the most likely cause, and what is the fix?
選択肢
- The window is too short for two samples, so the rate cannot be computed. Widening it to several scrape intervals fixes it.
- The metric is a gauge value, so the rate function silently returns nothing. Switching to the average over time fixes the gaps.
- The counter is resetting on every new scrape, which makes the rate correction discard the result. Restarting the target fixes it.
- The lookback period is shorter than the window, so the selector finds nothing. Raising the lookback period to one hour fixes it.