pub fn setup_monitoring(
config: &Config,
rollback: &RollbackManager,
) -> Result<(), Box<dyn Error>>Expand description
Sets up the monitoring system based on the provided configuration.
This function orchestrates the installation and configuration of Prometheus, Grafana, and Node Exporter. If monitoring is disabled in the configuration, it skips the setup.
§Arguments
config- A reference to theConfigstruct containing user-defined configuration optionsrollback- A reference to theRollbackManagerfor managing system state
§Errors
Returns an error if any part of the monitoring setup process fails.