debug

package
v0.0.0-...-6a2234f Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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

type DebugServer struct {
	*http.Server
}

DebugServer serves the prometheus metrics over http so that prometheus can scrape the metrics.

func NewDebugServer

func NewDebugServer(listenAddr string) (*DebugServer, error)

func (*DebugServer) Shutdown

func (s *DebugServer) Shutdown(ctx context.Context) error

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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