Skip to content

Expose postings cardinality stats from prometheus tsdb.Head #4980

Open
@damnever

Description

@damnever

Is your feature request related to a problem? Please describe.
Users may want to do some improvements based on the cardinality stats.

Describe the solution you'd like
Add a new API to the distributor/query-frontend, which accepts a label name argument as PostingsCardinalityStats does, the distributor divides aggregated stats by replication factor.

The API should support both HTML and JSON responses (grafana-json-datasource may be useful).

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