Skip to content

Rate chart drop in Thanos Query #8552

@raz08

Description

@raz08

We are using Thanos Query in our architecture to serve metrics queries for applications and clients. Our Prometheus setup consists of 2 shards with 2 replicas each, and Thanos Query is used in front to aggregate and deduplicate data across all Prometheus instances.

We observed an issue where the rate graph shows sudden narrow dips only when queried through Thanos Query. The same query, when executed directly on Prometheus, does not show these drops — the graph appears consistent and stable.

There are no signs of data gaps or issues on the Prometheus side or in the application pipeline. This behavior appears specific to Thanos deduplication or query execution.

Attached below are screenshots comparing Thanos Query and Prometheus outputs for the same expression for reference.

Thanos, Prometheus and Golang version used:
Thanos - v0.34.1
Prometheus - 3.4.2

Thanos UI

Image

Prometheus UI

Image

Anything else we need to know:

Sample data which has drop

prometheusratechartdata.txt
thanosratechartdata.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions