mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Signed-off-by: Alexander Marshalov <_@marshalov.org> Co-authored-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
This commit is contained in:
parent
a0ff5c2627
commit
b67bd156d5
5 changed files with 5833 additions and 0 deletions
|
@ -742,6 +742,24 @@ useful in the following scenarios:
|
||||||
|
|
||||||
If you need to export raw samples from VictoriaMetrics, then take a look at [export APIs](https://docs.victoriametrics.com/#how-to-export-time-series).
|
If you need to export raw samples from VictoriaMetrics, then take a look at [export APIs](https://docs.victoriametrics.com/#how-to-export-time-series).
|
||||||
|
|
||||||
|
### Query latency
|
||||||
|
|
||||||
|
By default, Victoria Metrics does not immediately return the recently written samples. Instead, it retrieves the last results written prior to the time specified by the `search.latencyOffset` flag, which has a default offset of 30 seconds.
|
||||||
|
This is true for both `query` and `query_range` and may give the impression that data is written to the VM with a 30-second delay.
|
||||||
|
|
||||||
|
But this flag avoids non-consistent results due to the fact that only part of the values are scraped in the last scrape interval.
|
||||||
|
|
||||||
|
Here is an illustration of a potential problem when `search.latencyOffset` is set to zero:
|
||||||
|
|
||||||
|
<img src="keyConcepts_withoutLatencyOffset.png">
|
||||||
|
|
||||||
|
When this flag is set, the VM will return the last metric value collected before the `search.latencyOffset`
|
||||||
|
duration throughout the `search.latencyOffset` duration:
|
||||||
|
|
||||||
|
<img src="keyConcepts_withLatencyOffset.png">
|
||||||
|
|
||||||
|
It can be overridden on per-query basis via `latency_offset` arg.
|
||||||
|
|
||||||
### MetricsQL
|
### MetricsQL
|
||||||
|
|
||||||
VictoriaMetrics provide a special query language for executing read queries - [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html).
|
VictoriaMetrics provide a special query language for executing read queries - [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html).
|
||||||
|
|
3072
docs/keyConcepts_with_latencyOffset.excalidraw
Normal file
3072
docs/keyConcepts_with_latencyOffset.excalidraw
Normal file
File diff suppressed because it is too large
Load diff
BIN
docs/keyConcepts_with_latencyOffset.png
Normal file
BIN
docs/keyConcepts_with_latencyOffset.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 MiB |
2743
docs/keyConcepts_without_latencyOffset.excalidraw
Normal file
2743
docs/keyConcepts_without_latencyOffset.excalidraw
Normal file
File diff suppressed because it is too large
Load diff
BIN
docs/keyConcepts_without_latencyOffset.png
Normal file
BIN
docs/keyConcepts_without_latencyOffset.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 MiB |
Loading…
Reference in a new issue