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.
More on Cardinality Control & Cost
What is cardinality and why is it the main cost driver for metrics?BeginnerHow do you find which metrics and labels are driving cardinality?IntermediateWhich labels should never appear on metrics?BeginnerHow do you enforce cardinality limits so one team cannot blow up the shared system?AdvancedHow do you drop or aggregate metrics you do not need?IntermediateHow do histograms affect cardinality, and how do you control it?Intermediate