healthcheck-prometheus — Optimization
Use supported labels
Section titled “Use supported labels”Use low-cardinality labels from the exporter allowlist. Unsupported labels are dropped.
Export collector metrics
Section titled “Export collector metrics”Use a metric collector for custom series. Metrics attached to individual checks stay in the JSON report.
Choose the exposition format
Section titled “Choose the exposition format”Use toPrometheusText for Prometheus text or toOpenMetricsText for OpenMetrics text. Both serialize an existing report.
Review dropped labels
Section titled “Review dropped labels”The allowlist also applies to defaultLabels and collector labels. Unsupported labels are silently dropped.