Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrometheusClient ¶
func NewPrometheusClient(ctx context.Context, kclient kubernetes.Interface, rc routeclient.Interface) (prometheusv1.API, error)
NewPrometheusClient returns Prometheus API or error Note: with thanos-querier you must pass an entire Alert as a query. Partial queries return an error, so have to pass the entire alert. Example query for an Alert: `ALERTS{alertname="PodDisruptionBudgetAtLimit",alertstate="pending",namespace="pdbnamespace",poddisruptionbudget="pdbname",prometheus="openshift-monitoring/k8s",service="kube-state-metrics",severity="warning"}==1` Example query: `scheduler_scheduling_duration_seconds_sum`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.