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