fn parse_gauge(text: &str, name: &str) -> Option<f64>Expand description
Parses a Prometheus gauge value from exposition-format text.
Searches for lines starting with name followed by either a space or {
(for labeled metrics), then parses the numeric value. Returns the last
matching sample to handle metrics emitted with multiple label sets.