configure_prometheus

Function configure_prometheus 

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

Configures Prometheus with a basic scrape configuration.

This function creates a basic Prometheus configuration file and restarts the Prometheus service.

ยงErrors

Returns an error if writing the configuration file or restarting the service fails.