Run a metadata query against the Prometheus Server

Arguments

match_target

The argument to match metrics against.

metric

The metric to retrieve metadata for. Optional.

limit

The number of results of targets to return.

Examples

prom <- Prometheus$new(host = "https://foo.bar", port = 9090) metadata <- prom$metadataQuery(match_target = '{job=~"..*"}', metric = 'go_goroutines')
#> Error in curl::curl_fetch_memory(url, handle = handle): Could not resolve host: foo.bar