pub struct PrometheusOptions {
pub help_text: bool,
pub percentiles: Vec<f64>,
}Expand description
Options for Prometheus text format rendering.
Fields§
§help_text: boolInclude # HELP lines when metric descriptions are available.
percentiles: Vec<f64>Percentiles to compute for histogram summaries (0.0-1.0 scale). If empty, full cumulative bucket exposition is used instead.
Implementations§
Source§impl PrometheusOptions
impl PrometheusOptions
Sourcepub fn with_percentiles(self, percentiles: Vec<f64>) -> Self
pub fn with_percentiles(self, percentiles: Vec<f64>) -> Self
Use summary-style histogram exposition with these percentiles.
Sourcepub fn without_help(self) -> Self
pub fn without_help(self) -> Self
Disable # HELP lines.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrometheusOptions
impl RefUnwindSafe for PrometheusOptions
impl Send for PrometheusOptions
impl Sync for PrometheusOptions
impl Unpin for PrometheusOptions
impl UnsafeUnpin for PrometheusOptions
impl UnwindSafe for PrometheusOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more