Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestsExceeded = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "rrl", Name: "requests_exceeded_total", Help: "Counter of requests exceeding QPS limit.", }, []string{"client_ip"}) ResponsesExceeded = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "rrl", Name: "responses_exceeded_total", Help: "Counter of responses exceeding QPS limit.", }, []string{"client_ip"}) )
Variables declared for monitoring.
Functions ¶
This section is empty.
Types ¶
type KubernetesClient ¶
type KubernetesClient struct {
// contains filtered or unexported fields
}
KubernetesClient is a wrapper over the kubernetes client used to communicate with the kubernetes API.
func NewKubernetesClient ¶
func NewKubernetesClient(namespace, app string) (*KubernetesClient, error)
NewKubernetesClient creates a new kubernetes client using in-cluster authn/authz.
type PodCounter ¶
PodCounter counts the number of healthy pods running.
type ResponseAccount ¶
type ResponseAccount struct {
// contains filtered or unexported fields
}
ResponseAccount holds accounting for a category of response
Click to show internal directories.
Click to hide internal directories.