Metrics Cardinality Explorer :: Kloudfuse Docs

Metrics Cardinality Explorer

The Metrics Cardinality Explorer provides a unified, interactive interface for exploring your metrics ecosystem. It combines metric discovery, label analysis, and cardinality investigation in a single workflow, helping you understand the relationships between metrics, labels, and their values while identifying high-cardinality issues.

Key capabilities

The Metrics Cardinality Explorer enables you to:

Understanding cardinality

Metrics cardinality is the number of unique combinations of metric names and their labels. Each unique combination creates a distinct time series in your data.

See Cardinality for more information.

Access the Metrics Cardinality Explorer

  1. From the left navigation, click Metrics.
  2. Select Cardinality explorer from the dropdown menu.

The Metrics Cardinality Explorer interface opens with three main columns: Metrics, Labels, and Label values.

Interface overview

The explorer uses a three-column layout that guides you through progressive discovery:

  1. Metrics column (left): Displays all metrics matching your current filters. Shows the metric name, type, and series count.
  2. Labels column (center): Shows all labels that appear on the filtered metrics. Displays the label name and value count.
  3. Label values column (right): Lists all values for the selected label. Enables value selection and query promotion.
  4. Time picker: Controls the time range for cardinality analysis. Located in the top-right corner.
  5. Date controls: Quick time range selection buttons.
  6. Series count toggle: Enables or disables series count display in the Labels column.

Explore metrics

The Metrics column displays all metrics that match your current filters.

  1. By default, all metrics in your system appear in the list.

  2. To find a specific metric, use the search box at the top of the Metrics column.

  3. Click any metric name to view its details.

When you select a metric:

  1. The metric name appears at the top with a back arrow to return to the full list.

  2. The metric’s type (gauge, counter, or histogram) and series count display.

  3. The Labels column updates to show only labels that appear on this metric, with value counts reflecting this metric only.

  4. To return to the full metrics list, click the back arrow () next to the metric name.

Explore labels

The Labels column shows all labels present on the metrics currently displayed in the Metrics column.

  1. By default, the Labels column lists all labels across all metrics, showing the count of distinct values for each label.

  2. To find a specific label, use the search box at the top of the Labels column.

  3. Click any label name to view its values in the Label values column.

When you select a label:

  1. The label name appears at the top of the Labels column with a back arrow.

  2. The label’s value count displays.

  3. The Label values column populates with all values for this label.

  4. If series count is enabled, the series count for this label displays.

  5. To return to the full labels list, click the back arrow next to the label name.

Label actions

Each label in the Labels column provides quick actions to work with that label:

These actions provide quick access to further analysis and query building workflows.

Display series count

By default, the Labels column shows only value counts. You can optionally display series counts to understand each label’s cardinality contribution.

Querying series count can be expensive, especially for longer time ranges. Enable this feature only when needed for cardinality analysis.
  1. Toggle Show series count in the Labels column header.

  2. The Labels column updates to display series count for each label alongside value count.

The series count represents the number of unique time series that include this label within the filtered metric set.

Select label values

Once you’ve selected a label, the Label values column displays all possible values for that label within the current filter context.

  1. View the list of values in the Label values column.

  2. To find a specific label value, use the search box at the top of the Label values column.

  3. To narrow your exploration to specific values, select one or more checkboxes.

When you select label values:

  1. The Metrics column filters to show only metrics that have the selected label values.
  2. The Labels column updates to show labels that appear on the filtered metrics.
  3. The selections persist while you continue exploring, but are temporary until promoted.
  4. To clear your value selections, click the back arrow in the Labels column to deselect the current label.

Label value actions

Each label value in the Label values column provides quick actions to work with that value:

These actions provide quick access to further analysis and query building workflows.

Promote label filters

Promoting a query converts your current label and value selections into a persistent filter that applies to all subsequent explorations.

  1. After selecting a label and one or more values, click Promote query in the Label values column header.

  2. The promoted filter appears in a new section above the Label values list, showing the label name and selected values.

Once promoted:

  1. The filter applies as an AND condition to all metrics and labels.

  2. The promoted label no longer appears in the Labels column.

  3. You can continue selecting additional labels and promoting them to further narrow your focus.

  4. All promoted filters combine with AND logic.

  5. To remove a promoted filter, click the delete icon () next to the promoted label.

Removing a promoted filter:

  1. Clears the persistent AND condition for that label.
  2. Returns the label to the Labels column so it can be explored again.
  3. Updates the Metrics and Labels columns to reflect the broader filter context.

Clear selections and filters

As you explore metrics and labels, you may want to clear your selections to broaden your exploration or start fresh.

Clear a selected metric

To return to viewing all metrics:

  1. Click the back arrow () next to the metric name at the top of the Metrics column.

The Metrics column returns to showing all metrics, and the Labels column updates to show all labels across all metrics.

Clear a selected label

To return to viewing all labels:

  1. Click the back arrow () next to the label name at the top of the Labels column.

The Labels column returns to showing all labels, and any selected label values are cleared from the Label values column.

Clearing a label selection also clears any label value selections you made, but does not remove promoted filters.

Clear selected label values

To clear your label value selections without deselecting the label:

  1. Uncheck the selected value checkboxes in the Label values column.

The Metrics and Labels columns update to reflect the broader filter context.

Example workflow: Investigate high cardinality

This example demonstrates using the Metrics Cardinality Explorer to identify and analyze a high-cardinality metric.

Scenario

You’ve noticed slow query performance and want to identify which metrics and labels contribute most to cardinality.

Steps

  1. Access the Metrics Cardinality Explorer and enable Show series count in the Labels column.

    This reveals that the image_tag label has an extremely high value count and series count.

  2. Click the image_tag label to view its values.

    The Label values column displays hundreds of distinct image tag values, many of which appear to be build-specific commit hashes.

  3. Select specific values to investigate further:

    1. Check the boxes for v0.5.0 and v0.11.1 (stable version tags).
    2. Notice the Metrics column updates to show only metrics with these image tags.
  4. Examine which metrics use the image_tag label:

    1. Review the filtered Metrics list.
    2. Identify that containerd_image_size is one metric using this label.
    3. Click containerd_image_size to focus on this metric.
  5. Promote the image_tag filter to maintain this focus:

    1. With the image tag values selected, click Promote query.
    2. The filter persists, and you can now explore other labels on this metric with these specific image tags.
  6. Investigate additional labels:

    1. Notice the short_image label also appears on this metric.
    2. Click short_image to view its values.
    3. Select a specific value like flagd and promote this filter as well.
  7. With multiple promoted filters active, you’ve narrowed your exploration to a very specific subset of metric series, enabling detailed cardinality analysis.

Outcome

By progressively filtering and promoting labels, you’ve identified:

This analysis enables you to take action, such as:

Performance considerations

The Metrics Cardinality Explorer queries your metrics data to compute cardinality statistics. Follow these best practices for optimal performance:

Time range selection

Series count queries

The Show series count toggle triggers additional cardinality queries that can be resource-intensive:

Use cases

Discover metric-label-value relationships

Use the explorer to understand your metrics topology:

Identify and troubleshoot high cardinality

Use the explorer to diagnose cardinality issues: