velvet-web 0.8.17

Wrapper stack for webapp apis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use axum_prometheus::metrics::{Counter, Gauge, Histogram};

/// Gets a prometheus counter
pub fn metric_counter(name: &'static str) -> Counter {
    axum_prometheus::metrics::counter!(name)
}

/// Gets a prometheus gauge
pub fn metric_gauge(name: &'static str) -> Gauge {
    axum_prometheus::metrics::gauge!(name)
}

/// Gets a prometheus histogram
pub fn metric_histogram(name: &'static str) -> Histogram {
    axum_prometheus::metrics::histogram!(name)
}