Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "grpc", Name: "requests_total", Help: "Counter of requests made per upstream.", }, []string{"to"}) RcodeCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "grpc", Name: "responses_total", Help: "Counter of requests made per upstream.", }, []string{"rcode", "to"}) RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: plugin.Namespace, Subsystem: "grpc", Name: "request_duration_seconds", Buckets: plugin.TimeBuckets, Help: "Histogram of the time each request took.", }, []string{"to"}) )
Variables declared for monitoring.
View Source
var ( // ErrNoHealthy means no healthy proxies left. ErrNoHealthy = errors.New("no healthy gRPC proxies") )
Functions ¶
This section is empty.
Types ¶
type GRPC ¶
GRPC represents a plugin instance that can proxy requests to another (DNS) server via gRPC protocol. It has a list of proxies each representing one upstream proxy.
Click to show internal directories.
Click to hide internal directories.