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 ResponseAccount ¶
type ResponseAccount struct {
// contains filtered or unexported fields
}
ResponseAccount holds accounting for a category of response Next response is allowed if current time >= allowTime
Click to show internal directories.
Click to hide internal directories.