gather_metrics

Function gather_metrics 

Source
pub fn gather_metrics() -> Result<String, Error>
Expand description

Gather and encode all metrics in Prometheus text format

§Returns

Prometheus-formatted metrics as a String

§Errors

Returns error if encoding fails