TigerBear
TigerBear

Reputation: 2834

How far back does a prometheus query fetch data

When querying prometheus without any functions, is the result returned just from the last scrape, or is it from the last minute, etc?

my_metric{label1=myval}

Upvotes: 0

Views: 145

Answers (1)

brian-brazil
brian-brazil

Reputation: 34122

It's roughly from the last scrape, https://prometheus.io/docs/prometheus/latest/querying/basics/#staleness has more detail.

Upvotes: 1

Related Questions