promql: instant selectors keep stale series, reading 3-5% above VictoriaMetrics
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start by locating the PromQL instant-selector and rollup implementation, then read the tests covering lookback windows and stale series. Compare how instant selectors and default_rollup(m[5m]) handle stale samples and disappearing scrape targets. Done means the stated instant sum is within 1% of VictoriaMetrics on prod-us; the issue names no files or test commands.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Instant selectors on prod Snuffle (v0.101.0) return more series than VictoriaMetrics for metrics whose series disappear, such as pods that have terminated.
On Grafana prod-us, sum(kube_pod_container_resource_requests{resource="cpu"}) on posthog-prometheus vs victoriametrics:
| time | Snuffle | VictoriaMetrics | gap |
|---|---|---|---|
| 2026-11-12T03:08Z (v0.100.0) | 5812.8 | 5581.0 | +4.2% |
| 2026-11-13 ~02:52Z (v0.101.0) | 5592.4 | 5324.8 | +5.0% |
| 2026-11-13 ~03:26Z (v0.101.0) | 5304.6 | 5134.5 | +3.3% |
Why it looks like staleness: at 2026-11-12T03:08Z, VictoriaMetrics returned 5581 for default_rollup(m[5m]) and 5802 for last_over_time(m[5m]), so it drops series whose last sample is stale. Snuffle returned about the same number for both (5814.5 and 5812.8). Snuffle seems to keep any series that has a sample in the lookback window, even after the series has gone stale. It doesn't honour staleness markers, and it doesn't treat a series as gone when its scrape target disappears.
Not caused by #34 or #35: the gap is still there after the #35 revert (#41, shipped in v0.101.0). #34's sum(m[5m]) gives exactly the same numbers as the plain selector, so it inherits the gap without adding to it.
What done looks like: instant sum(kube_pod_container_resource_requests) on posthog-prometheus is within 1% of victoriametrics on prod-us.
🤖 Daniel's agent · perch shepherd
- Lingua principale
- Go
- Stelle
- 3
- Fork
- 0
- Merge medio
- 18h 34m
- PR unite (30g)
- 23
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PostHog/snuffle
-
PromQL histogram queries fail when stored bounds end in +Inf (common in prom-client histograms)Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PostHog/snuffle
Issue simili
-
ssa: wait errors drop the kstatus message, so health check failures don't say whyForse già presa @schdief l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Pin and verify Security Insights schema in lintinsights targetForse già presa @imshubham22apr-gif l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
gemaraproj/gemara#618 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
a2aproject/a2a-go#597 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 4 giorni
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace charactersForse già presa @patelshivani2283-lab l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno