Skip to content

Expose metrics for number of active series queried within a given time period #7151

@yeya24

Description

@yeya24

Is your feature request related to a problem? Please describe.
As a Cortex metrics platform operator, I want to understand for tenants in Cortex, the percentage of active time-series ingested that were actually queried. Queried time series can be tracked using different time windows such as last 5m, 30m, 2h, etc.

Describe the solution you'd like
This metric doesn't need to be exact so some sort of probablistic data structure can be used to estimate cardinality like hyperloglog. Besides, sampling can be introduced to sample certain queries.

Describe alternatives you've considered
Should this metric be tracked in queries or ingesters?
It makes the most of sense to track recent data so I think cold series queried should be ignored. But for data in Ingester, should we only keep track of series queried from Head?

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/observabilityTo help know what is going on inside Cortex

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions