Function prometheus::push_add_metrics[][src]

pub fn push_add_metrics<S: BuildHasher>(
    job: &str,
    grouping: HashMap<String, String, S>,
    url: &str,
    mfs: Vec<MetricFamily>,
    basic_auth: Option<BasicAuthentication>
) -> Result<()>

push_add_metrics works like push_metrics, but only previously pushed metrics with the same name (and the same job and other grouping labels) will be replaced. (It uses HTTP method ‘POST’ to push to the Pushgateway.)