Skip to main content

set_instance_label

Function set_instance_label 

Source
pub fn set_instance_label(label: &str)
Expand description

Sets the metrics instance label for push gateway grouping.

This allows hooks and MCP server to push to separate metric groups. Must be called before any metrics are flushed. Only the first call takes effect (subsequent calls are ignored).