Documentation ¶
Overview ¶
Package debug contains prometheus metric definitions, wrapper functions for tracking metrics, and some code to serve the prometheus metrics and pprof via http.
Index ¶
Constants ¶
View Source
const Namespace = "slink"
Variables ¶
This section is empty.
Functions ¶
func IncomingRequestDurations ¶
func IncomingRequestDurations() *prometheus.HistogramVec
func IncomingRequests ¶
func IncomingRequests() *prometheus.CounterVec
Types ¶
type DebugServer ¶
DebugServer serves the prometheus metrics over http so that prometheus can scrape the metrics.
func NewDebugServer ¶
func NewDebugServer(listenAddr string) (*DebugServer, error)
Click to show internal directories.
Click to hide internal directories.