Skip to main content

register_process_metrics

Function register_process_metrics 

Source
pub fn register_process_metrics()
Expand description

Registers the process CLI arguments as a prometheus metric.

This captures the flags passed to the binary via std::env::args and emits them as a process_cli_args gauge set to 1 with an args label containing flag names only.

Values are stripped to avoid leaking secrets (e.g. --p2p.secret KEY becomes --p2p.secret).