Metrics Cardinality Analytics :: Kloudfuse Docs

Metrics Cardinality Analytics

Rapidly analyzing high cardinality fields is key for effective observability. It helps identify specific issues and their causes, like finding a user or a specific endpoint that is causing problems.

Metrics Cardinality Analytics help you determine if you have excessive number of distinct metrics that lead to lower performance in your system. See Cardinality.

Because metrics cardinality is the number of unique combinations of metric names and their labels or dimensions, it determines the possible number of time series in your data.

Determine metrics cardinality

  1. Navigate to the Metrics Cardinality Analytics by clicking the Metrics tab, and selecting Cardinality Analytics:

See Reported Cardinality Measurements for details of the report.

  1. By default, the report computes cardinality by Label. This example reports the overall cardinality as All cardinality: 294,885.

  2. When you have a very large number of distinct labels, you can search for specific ones by name.

Here, click Select a label, and choose a tracked label from the drop-down, agent,

And specify its value from Select a value drop-down, otelcol.

  1. The result shows the cardinality of the label agent=otelcol; here, it has the cardinality of 18.

  2. Click the selector next to Show Cardinality page label, and select by metric. The table resets to show the calculations by Metric.

  3. When you have a very large number of distinct metrics or labels, you can search for specific ones by name.

Here, click Select a metric, and choose a tracked metric from the drop-down.

  1. Observe that in this example, the cardinality of the metric aws_autoscaling_group_and _warm_pool_total_capacity is 10.

  2. To further refine your investigation, you can select a label that applies to that metric from the Select a label drop-down,

And specify its value from Select a value drop-down.

  1. The result shows the cardinality of the metric with specified label value; here, it has the cardinality of 1.

Adjust cardinality report

By default, the interface limits the display to the top 10 entries by Series Count, yet you can easily change the display.

The demonstrations here build on top of the results Report by label, step 5.

Reverse sort

To show the bottom entries, change the reporting order.

  1. Click the sort order option next to limit to, and select bottom from the drop-down.

  2. You can see that the interface now displays the bottom results.

Change sort

To sort by the Value Count of entries instead of the default Series Count, change the sort option.

  1. Click the Series Count selection next to by, and select Value Count from the drop-down.

  2. You can see that the interface now displays the entries in order of Value Count, with the explorer label at the top.

Increase number of entries

To display all results in a table, you can increase the limit.

  1. Click the number next to limit to, and select a new value from the drop-down.

Here, the new limit will be 25.

  1. You can see that the interface now displays more than 10 results; there are 22 in this example.

Change the time interval

The default reporting time interval is for the preceding 5 minutes.

The UI supports the maximum time interval of 5 minutes. However, it reports on any contiguous 5 minutes.
  1. To change the reporting time interval:

  2. Click the Last 5 minutes selector at the top right of the interface.

  3. In the Calendar picker, change the From and To parameters.

Notice that the default settings are for the last 5 minutes. This change is to report data for the last 1 minute:

From Change from now-5m to now-1m

To Keep now

  1. [Optional] To specify local time you use in the browser, toggle the Disable UTC selector.

  2. Click Apply Time Range.

  3. The interface now displays the measurements and charts for the specified time interval.

Reported Cardinality Measurements

Metrics cardinality reports on these measurements: