Skip to content

healthcheck-prometheus — Optimization

Use low-cardinality labels from the exporter allowlist. Unsupported labels are dropped.

Use a metric collector for custom series. Metrics attached to individual checks stay in the JSON report.

Use toPrometheusText for Prometheus text or toOpenMetricsText for OpenMetrics text. Both serialize an existing report.

The allowlist also applies to defaultLabels and collector labels. Unsupported labels are silently dropped.

Package guidance · Implementation. · Matching skill.