May 2019
Intermediate to advanced
442 pages
11h 36m
English
A range vector selector is similar to an instant vector selector, but it returns a set of samples for a given time range, for each time series that matches it. Keep in mind that a timestamp of a given value might not be completely aligned with the scrape time for different targets since Prometheus spreads the scrapes across their defined intervals, reducing overlapping scrapes in the same instant.
To define a range vector selector query, you have to set an instant vector selector and append a range using square brackets [ ].
The following table details the available time units for defining a range:
|
Abbreviation |
Unit |
|
s |
Seconds |
|
m |
Minutes |
|
h |
Hours |
|
d |
Days |
|
w |
Weeks |
|
y |
Years |
Like durations, ...
Read now
Unlock full access