-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some metrics are late on Victoria query endpoint #1484
Comments
VictoriaMetrics return datapoints with delay at query endpoints, its controlled by flag:
You can try to adjust it to needed values.
timestamps uses values from metrics, if it was pushed by remote write protocol. If it was scrapped by VictoriaMetrics, it has to be time of scrapping. |
Issue is visible when querying api/v1/query_range with curl. END=$(date +%s) |
@xenofree maybe you can have a check of time difference between the machine of you run vm with your pc. |
Everything is synchronized with ntp. |
This may be related to time series staleness handling in VictoriaMetrics, which works differently than in Prometheus. See this issue. This should be fixed in the next release of VictoriaMetrics. See the umbrella issue for details. |
FYI, VictoriaMetrics and vmagent gained support for Prometheus staleness markers starting from the release v1.64.0. |
See also #2061 |
Closing the issue as completed. Feel free to reopen if it still can be reproduced. |
Some metrics appear in prometheus, and /api/v1/export of victoria but appear late on /api/v1/query
curl -sg 'http://x.x.x.x:8428/api/v1/export?match[]=probe_duration_seconds{instance="https://www.google.fr"}&start=2021-07-22T13:50:00.000Z'
"values": [
0.166824193,
0.170407809
],
"timestamps": [
1626962464746,
1626962524746
]
curl -sg 'http://x.x.x.x:8428/api/v1/query?query=probe_duration_seconds{instance="https://www.google.fr"}'
"value": [
1626962531,
"0.166824193"
]
curl -sg 'http://x.x.x.x:9090/api/v1/query?query=probe_duration_seconds{instance="https://www.google.fr"}'
"value": [
1626962531.511,
"0.170407809"
]
date +%s
1626962531
Why timestamp on /api/v1/export are not the same as OS timestamp ?
Why metrics appears on /api/v1/export but not in /api/v1/query endpoint ?
When querying through grafana, last value are also wrong.
I tried with single-node Victoria and Cluster mode, but in both case i have thoses issues.
Version
docker exec victoriametrics ps
/victoria-metrics-prod -storageDataPath=/victoria-metrics-data -retentionPeriod=12 -dedup.minScrapeInterval=1m
docker exec victoriametrics /victoria-metrics-prod --version
victoria-metrics-20210715-111307-tags-v1.63.0-0-g61cc13c16
The text was updated successfully, but these errors were encountered: