7.6.2.54. usePrometheusPoll
Sets up a poll to Prometheus for a single query. It returns a tuple containing the query response, a boolean flag indicating whether the response has completed, and any errors encountered during the request or post-processing of the request.
| Parameter Name | Description |
|---|---|
|
| one of the PrometheusEndpoint (label, query, range, rules, targets) |
|
| (optional) Prometheus query string. If empty or undefined, polling is not started. |
|
| (optional) polling delay interval (ms) |
|
| (optional) for QUERY_RANGE enpoint, end of the query range |
|
| (optional) for QUERY_RANGE enpoint |
|
| (optional) for QUERY_RANGE enpoint |
|
| (optional) a search param to append |
|
| (optional) a search param to append |