Skip to main content

format_openmetrics_failed

Function format_openmetrics_failed 

Source
pub fn format_openmetrics_failed(
    backend: &str,
    server: &str,
    err: &str,
) -> String
Expand description

OpenMetrics text for a failed probe (for scrape daemons that must always expose metrics).

Sets linkprobe_ok to 0 and adds a linkprobe_last_error series with the error message.