pub async fn flags(host: &str) -> Result<HashMap<String, String>, Error>
Expand description

Retrieve a list of flags that Prometheus was configured with.

This is just a convenience function for one-off requests, see Client::flags.

use prometheus_http_query::{flags, Error};

#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Error> {
    let response = flags("http://localhost:9090").await;

    assert!(response.is_ok());

    Ok(())
}