Function prometheus::push_add_collector[][src]

pub fn push_add_collector<S: BuildHasher>(
    job: &str,
    grouping: HashMap<String, String, S>,
    url: &str,
    collectors: Vec<Box<dyn Collector>>,
    basic_auth: Option<BasicAuthentication>
) -> Result<()>

push_add_collector works like push_add_metrics, it collects from the provided collectors. It is a convenient way to push only a few metrics.