You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repurpose Client::from() to create a Client from a custom-built reqwest::Client plus a base URL, so authentication, proxy settings etc. may be customized by the user.
Selector::metric() is not fallible anymore. Metric names that equal reserved Prometheus keywords like "on" can now be queried.
Removed
Client::new()
Error::IllegalMetricName
Fixed
As yet prometheus_http_query::functions::scalar could not possibly return a result. An error would be thrown inevitably. The query result will now correctly be a QueryResultType::Scalar(Sample) that can be extracted by QueryResultType::as_scalar().