Module formatting
Expand description
Helpers for rendering metrics in the Prometheus exposition format.
Functionsยง
- Breaks a key into the name and label components, with optional default labels.
- Sanitizes a metric description to be valid under the Prometheus exposition format.
- Sanitizes a label key to be valid under the Prometheus data model.
- Sanitizes a label value to be valid under the Prometheus data model.
- Sanitizes a metric name to be valid under the Prometheus data model.
- Writes a help (description) line in the Prometheus exposition format.
- Writes a metric in the Prometheus exposition format.
- Writes a metric type line in the Prometheus exposition format.