Filtering prometheus metrics based on a label combination in open-telemetry

Some applications charge per ingested metric time series so you may need to filter metrics you're not actively using. For example in case of metrics ingested into Splunk using otel-collector from Prometheus endpoints you can exclude metrics having a particular label combination.

The solution involves using  to drop the metrics. Metric relabeling is applied to samples as the last step before ingestion.