use metrics::describe_gauge; mod gauge_names; pub mod pl; pub fn register_metrics() { describe_gauge!(gauge_names::BATTERY_VOLTAGE, "Battery voltage"); describe_gauge!(gauge_names::TARGET_VOLTAGE, "Target voltage"); describe_gauge!(gauge_names::INPUT_CURRENT, "Internal charge current"); describe_gauge!(gauge_names::CHARGE_STATE, "Regulator state"); register_pl_metrics(); } fn register_pl_metrics() { describe_gauge!(gauge_names::PL_DUTY_CYCLE, "Duty cycle"); describe_gauge!(gauge_names::PL_LOAD_CURRENT, "Internal load current"); }