Skip to main content

Module metrics

Module metrics 

Source
Expand description

Prometheus metrics.

Structsยง

Metrics
Metrics collector.
MetricsConfig
Metrics configuration.
MetricsHandle
Metrics handle for flushing on shutdown.
PushGatewayConfig
Push gateway configuration.

Staticsยง

GLOBAL_METRICS ๐Ÿ”’
Global metrics handle for flush-on-demand.
METRICS_INSTANCE ๐Ÿ”’
Global metrics instance label for push gateway grouping.

Functionsยง

apply_push_gateway_env_overrides ๐Ÿ”’
flush
Flushes metrics to the push gateway if configured.
flush_global
Flushes metrics to the push gateway if configured.
flush_to_gateway ๐Ÿ”’
Internal function to push metrics to the gateway.
get_instance_label ๐Ÿ”’
Gets the configured instance label, if any.
install_listener ๐Ÿ”’
install_prometheus
Installs the Prometheus metrics recorder and HTTP listener.
install_with_runtime ๐Ÿ”’
parse_bool_env ๐Ÿ”’
parse_port_env ๐Ÿ”’
parse_push_gateway_settings ๐Ÿ”’
parse_string_env ๐Ÿ”’
set_global_recorder ๐Ÿ”’
set_instance_label
Sets the metrics instance label for push gateway grouping.