Skip to content

query: invalid rate/irate with deduplication for most recent values #2890

@creker

Description

@creker

Thanos, Prometheus and Golang version used:
bitnami/thanos:0.13.0
prom/prometheus:v2.19.0

Prometheus in HA configuration, 2 instances. Single Thanos querier instance.

Object Storage Provider:
On premise minio deployment

What happened:
Executing rate or irate with deduplication sometimes results in the most recent value being invalid. Either it shoots up to very high or very low value. Turning off deduplication produces correct results from both Prometheus instances.

With deduplication, good result
with_dedup_good

With deduplication, bad result. Executing the same query eventually gives incorrect result like this
with_dedup_bad

Same query without deduplication always produces correct result
without_dedup

What you expected to happen:
Query with deduplication always giving correct result like this
with_dedup_good

How to reproduce it (as minimally and precisely as possible):
Prometheus in HA, any rate or irate query.

Full logs to relevant components:
Nothing that would correlate with queries.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions