Update Pipeline and Visualize Metrics

Aggregate and Drop a High-Cardinality Dimension

4 min

Now that you have added the dimensions to your pipeline, you will chart the metric to see how you can use these dimensions for grouping and filtering. Then you will use Metrics Pipeline Management to aggregate the metric and drop the noisy auditID dimension, reducing your cardinality without making any changes to the Ingest Processor Pipeline.

Exercise: Review the New Dimensions

1. If you closed the chart you created in the previous section, in the upper-right corner, click the + Icon → Chart to create a new chart.

Create New Chart

2. In the Plot Editor of the newly created chart enter the name of the metric you created in your Ingest Processor Pipeline (k8s_audit_UNIQUE_FIELD) in the metric name field.

3. Notice the change from one to many metrics, which happened when you updated the pipeline to include the dimensions. Because the auditID dimension is unique on every Kubernetes audit event, every metric data point now creates its own MTS. This is a cardinality explosion, and while the metric is technically more detailed, all of those single-use time series inflate your utilization without providing any value you can actually chart or alert on.

Metric Timeseries

Note

This is a common situation in real environments. A team adds a convenient identifier as a dimension, and their MTS count climbs far faster than expected. In the next exercise you will use Metrics Pipeline Management to bring that cardinality back under control, all from the Splunk Observability Cloud UI and without touching the Ingest Processor Pipeline or the systems sending the data.

Exercise: Aggregate and Drop the auditID Dimension

You will now use Metrics Pipeline Management to create an aggregation rule that rolls your metric up into a new, lower-cardinality metric that no longer includes the unique auditID dimension. You will then drop the raw, high-cardinality metric that you no longer need.

1. In Splunk Observability Cloud, navigate to MetricsPipeline Automation.

Navigate to Pipeline Automation

2. Select Pipeline Management in the row across the top of the page.

3. On the Pipeline Management page, click the Choose a metric button.

Select Pipeline Management

4. In the Choose a metric pop-up, enter the name of the metric you created in the Ingest Processor Pipeline (for example, k8s_audit_2) and click Choose.

Enter Metric Name

5. In the Ingestion section, next to Raw MTS, click Edit.

Edit Raw MTS

Info

Take a moment to review the metric pipeline shown on this page. Right now the Raw MTS and the Real-time MTS counts are the same. That is because you have not created any aggregation or routing rules yet, so every raw MTS you send is stored and available in real time. As you add rules in the next steps, watch how these values change to reflect the optimization you are applying.

6. On the Update raw data routing modal, select Dropped. This discards the incoming metric data before it is stored in Splunk Observability Cloud. If you ever need a specific MTS restored, you can re-route it to real-time using routing exception rules. Click Update then Enable to activate the update.

Drop Raw Data Routing

7. In the Added by rule section, click + Add to create a new aggregation rule.

Add Aggregation Rule

8. In the Create aggregation rule modal, enter Drop unique auditID for the name.

9. In the Select dimensions section, change the value in the dropdown from Keep to Drop and use the search bar to select auditID.

Note

Notice that a new metric name is created for the aggregated metric. This new metric keeps all of your useful dimensions but no longer includes the unique auditID. You will use this aggregated metric in the next section when you create a visualization.

10. Review the Data volume section, which shows the unaggregated Raw MTS and the Aggregated MTS. Here you can see the exact reduction in MTS that results from dropping the auditID dimension. This is the utilization you are reclaiming, all without changing anything at the ingest endpoint.

11. Click Create.

Create Aggregation Rule

Note

You have now aggregated your metric into a new, lower-cardinality metric and dropped the raw metric that included the unique auditID dimension. You did all of this from the Splunk Observability Cloud UI, without making any changes to the Ingest Processor Pipeline or the systems sending the data.

In the next step you will create a visualization using the aggregated metric.