Interview Prep/Monitoring & Observability/Cardinality Control & Cost

How do you stop exporters from producing high-cardinality metrics by default?

IntermediateProductionCardinality Control & Cost
Answer

Configure them narrowly: kube-state-metrics --metric-labels-allowlist and --metric-annotations-allowlist only for labels you need, node_exporter with only needed collectors (--no-collector.<name>), cAdvisor metrics filtered with metric_relabel_configs, and cloud exporters (YACE, Stackdriver) limited to the metrics and dimensions you use. Defaults in many charts are generous.

All Monitoring & Observability questions

More on Cardinality Control & Cost