Skip to content

Thanos queries should limit the amount of data in the returned series. #8740

@zdyj3170101136

Description

@zdyj3170101136

Is your proposal related to a problem?

this query return 12w series, cost 9 GB memory:

rate(rest_client_request_duration_seconds_bucket[5m])

the memory heap

Image

i use thanos v0.41.0, query-engine=thanos。

Describe the solution you'd like

Add a parameter to limit the number of series that thannos returns.

In short, when a user queries through Grafana, series exceeding 1000 are essentially worthless.

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