Skip to main content

Module prometheus

Module prometheus 

Source
Expand description

Logging dataflow for Prometheus metrics gathered from the metrics registry.

Structsยง

Return ๐Ÿ”’
The return type of construct.

Functionsยง

construct ๐Ÿ”’
Constructs the logging dataflow fragment for Prometheus metrics.
flatten_metrics ๐Ÿ”’
Flatten metric families into a snapshot map.
format_f64 ๐Ÿ”’
Format an f64 for use as a label value, matching Prometheus conventions.
insert_row ๐Ÿ”’
Insert a single metric row into the snapshot.
pack_row ๐Ÿ”’
Pack a metric row into key/value row pairs.

Type Aliasesยง

SnapshotKey ๐Ÿ”’
Key type for the snapshot: (metric_name, sorted_label_pairs).
SnapshotValue ๐Ÿ”’
Value type for the snapshot: (value, metric_type, help).