Query on documentation

33 views
Skip to first unread message

Manish G

unread,
Sep 3, 2020, 12:40:33 PM9/3/20
to Prometheus Users
Hi All,

Is there documentation available which tells how factors like min step, time window in the query, resolution etc impact the data scrapping, and hence the data points evaluation?

With regards

Brian Candler

unread,
Sep 3, 2020, 1:30:54 PM9/3/20
to Prometheus Users
Queries have no effect on data scraping.  Data scraping is affected by the configuration of the scrape job only.

Manish G

unread,
Sep 3, 2020, 1:49:30 PM9/3/20
to Brian Candler, Prometheus Users
Sorry, I meant impact on datapoint evaluation.

With regards

On Thu, Sep 3, 2020, 11:00 PM Brian Candler <b.ca...@pobox.com> wrote:
Queries have no effect on data scraping.  Data scraping is affected by the configuration of the scrape job only.

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/248f78fe-e232-4155-8e3d-6a656f162dfdo%40googlegroups.com.

Brian Candler

unread,
Sep 3, 2020, 3:35:37 PM9/3/20
to Prometheus Users
It depends on which API endpoint you're talking to.

If you're talking to the 'query' endpoint, and you give a range vector query, then you'll get all the actual data points, with the actual timestamps at they were scraped, from the specified time range.

If you're talking to the 'query' endpoint, and you give a subquery, then the inner query will be sampled at the intervals given in the subquery.

If you're talking to the 'query_range' endpoint, then you give it an instant vector query.  This query will be evaluated multiple times, at the interval given by the 'step' parameter.

I don't believe "min_step" is part of Prometheus.  (Grafana possibly).
Reply all
Reply to author
Forward
0 new messages