prometheus

package
v18.8.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 121

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

func NewGrpcServer() *grpc.Server

returns a grpc server pre-configured with prometheus interceptors

func WithTelemetry

func WithTelemetry(handler http.Handler) http.HandlerFunc

instrument HTTP server with prometheus

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL