Skip to main content

format_open_metrics_float

Function format_open_metrics_float 

Source
pub(crate) fn format_open_metrics_float(value: f64) -> String
Expand description

Prometheus labels.FormatOpenMetricsFloat, the form of histogram_quantiles labels: Go’s shortest 'g' format, with .0 appended to an integer and 0, 1 and -1 written as 0.0, 1.0 and -1.0.