Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestDurationBucketsSeconds = append(append(append(append( prometheus.LinearBuckets(0.01, 0.01, 5), prometheus.LinearBuckets(0.1, 0.1, 5)...), prometheus.LinearBuckets(1, 1, 5)...), prometheus.LinearBuckets(10, 10, 5)...), )
define latency buckets to record (seconds)
View Source
var ResponseSizeBuckets = append(append(append(append( prometheus.LinearBuckets(100, 100, 5), prometheus.LinearBuckets(1000, 1000, 5)...), prometheus.LinearBuckets(10000, 10000, 5)...), prometheus.LinearBuckets(1000000, 1000000, 5)...), )
define response size buckets (bytes)
Functions ¶
func NewGrpcServer ¶
returns a grpc server pre-configured with prometheus interceptors
func NewMetricsServer ¶
func NewMetricsServer(metricsAddr string)
func WithTelemetry ¶
func WithTelemetry(handler http.Handler) http.HandlerFunc
instrument HTTP server with prometheus
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.