Documentation ¶
Index ¶
- func ExpectPrometheus(f *framework.Framework) (url, bearerToken string, oc *exutil.CLI, ok bool)
- func ExpectPrometheusEndpoint(namespace, podName, url string)
- func ExpectURLStatusCodeExec(ns, execPodName, url string, statusCode int) error
- func GetBearerTokenURLViaPod(ns, execPodName, url, bearer string) (string, error)
- func LocatePrometheus(oc *exutil.CLI) (url, bearerToken string, ok bool)
- func RunQueries(promQueries map[string]bool, oc *exutil.CLI, ...) error
- type PrometheusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectPrometheus ¶
ExpectPrometheus uses an existing framework to return information used to make http requests to Prometheus
func ExpectPrometheusEndpoint ¶
func ExpectPrometheusEndpoint(namespace, podName, url string)
ExpectPrometheusEndpoint attempts to connect to the metrics endpoint with delayed retries upon failure.
func ExpectURLStatusCodeExec ¶
ExpectURLStatusCodeExec attempts connection to url returning an error upon failure or if status return code is not equal to statusCode.
func GetBearerTokenURLViaPod ¶
GetBearerTokenURLViaPod makes http request through given pod
func LocatePrometheus ¶
LocatePrometheus uses an exisitng CLI to return information used to make http requests to Prometheus
Types ¶
type PrometheusResponse ¶
type PrometheusResponse struct { Status string `json:"status"` Data prometheusResponseData `json:"data"` }
PrometheusResponse is used to contain prometheus query results
Click to show internal directories.
Click to hide internal directories.