Skip to main content

flush_metrics

Function flush_metrics 

Source
pub fn flush_metrics()
Expand description

Flushes metrics to the push gateway if configured.

This can be called from anywhere to push metrics immediately, useful for short-lived processes like MCP server requests.