Function prometheus::push_collector [−][src]
pub fn push_collector<S: BuildHasher>(
job: &str,
grouping: HashMap<String, String, S>,
url: &str,
collectors: Vec<Box<dyn Collector>>,
basic_auth: Option<BasicAuthentication>
) -> Result<()>
push_collector
push metrics collected from the provided collectors. It is
a convenient way to push only a few metrics.