setup_node_exporter

Function setup_node_exporter 

Source
pub fn setup_node_exporter() -> Result<(), Box<dyn Error>>
Expand description

Sets up and starts the Node Exporter.

This function installs Node Exporter (either via package manager or from source), starts the Node Exporter service, and enables it to start on boot.

ยงErrors

Returns an error if installation, starting, or enabling the Node Exporter service fails.