metric

package
v0.0.0-...-1d71d57 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPHandler

func HTTPHandler(h http.Handler) http.Handler

HTTPHandler returns a http.Handler wrapper that instruments given HTTP server's handler

func HTTPTransport

func HTTPTransport(base *http.Transport) http.RoundTripper

HTTPTransport returns a http.RoundTripper wrapper that instruments all outgoing requests from base

Types

type Server

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

Server represents a metric server serves /metrics endpoint

func NewServer

func NewServer() (*Server, error)

NewServer returns a metric server

func (*Server) Run

func (s *Server) Run() error

Run launchs the metric server

func (*Server) Stop

func (s *Server) Stop() error

Stop stops the metric server gracefully

Jump to

Keyboard shortcuts

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