register_hardware_metrics

Function register_hardware_metrics 

Source
pub fn register_hardware_metrics(
    registry_service: &RegistryService,
    db_path: &Path,
) -> Result<(), HardwareMetricsErr>
Expand description

Register all hardware metrics: CPU specs, Memory specs/usage, Disk specs/usage These metrics are all named with a prefix “hw_” They are both pushed to iota-proxy and exposed on the /metrics endpoint.