metrics

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Attributes struct {
	StatusFailure attribute.KeyValue
	StatusSuccess attribute.KeyValue
}
View Source
var Mirror struct {
	SyncDuration    metric.Int64Histogram
	ProcessDuration metric.Int64Histogram
}

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(listenAddr string) (*Server, error)

NewServer instantiates a new server that upon start exposes the collected metrics as Prometheus metrics.

func (*Server) Shutdown

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

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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