fn run(&mut self, parameters: ArgMatches) {
        info!(
            "{}: Starting Prometheus exporter",
            Utc::now().format("%Y-%m-%dT%H:%M:%S")
        );
        println!("Press CTRL-C to stop scaphandre");

        runner(
            (*self.sensor.get_topology()).unwrap(),
            parameters.value_of("address").unwrap().to_string(),
            parameters.value_of("port").unwrap().to_string(),
            parameters.value_of("suffix").unwrap().to_string(),
            parameters.is_present("qemu"),
            parameters.is_present("containers"),
            get_hostname(),
        );
    }
/// Entry point ot the PrometheusExporter.
///
/// Runs HTTP server and metrics exposure through the runner function.
Entry point ot the PrometheusExporter.
Runs HTTP server and metrics exposure through the runner function.
Entry point ot the PrometheusExporter . Runs HTTP server and metrics exposure through the runner function .
fn run(&mut self, parameters: ArgMatches) {
        info!(
            "{}: Starting Prometheus exporter",
            Utc::now().format("%Y-%m-%dT%H:%M:%S")
        );
        println!("Press CTRL-C to stop scaphandre");
        runner(
            (*self.sensor.get_topology()).unwrap(),
            parameters.value_of("address").unwrap().to_string(),
            parameters.value_of("port").unwrap().to_string(),
            parameters.value_of("suffix").unwrap().to_string(),
            parameters.is_present("qemu"),
            parameters.is_present("containers"),
            get_hostname(),
        );
    }
fn run ( & mut self , parameters : ArgMatches ) { info ! ( " " Utc now ( ) format ( " " ) ) ; println ! ( " " ) ; runner ( ( * self . sensor . get_topology ( ) ) . unwrap ( ) , parameters . value_of ( " " ) . unwrap ( ) . to_string ( ) , parameters . value_of ( " " ) . unwrap ( ) . to_string ( ) , parameters . value_of ( " " ) . unwrap ( ) . to_string ( ) , parameters . is_present ( " " ) , parameters . is_present ( " " ) , get_hostname ( ) , ) ; }
Entry point ot the PrometheusExporter.
Entry point ot the PrometheusExporter .
&mut self
parameters
ArgMatches
&mut self
parameters
ArgMatches