status

package
v0.0.0-...-2aa8555 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	M = &Metrics{}
)

Functions

func HandleMetrics

func HandleMetrics()

Types

type Metrics

type Metrics struct {
	//message
	MessageCounterVec       *prometheus.CounterVec
	MessageSizeHistogramVec *prometheus.HistogramVec
	MessageHistogramVec     *prometheus.HistogramVec

	//callback cost
	CallbackHistogramVec *prometheus.HistogramVec

	//gc
	GCKeysCounterVec *prometheus.CounterVec
	IsLeaderGaugeVec *prometheus.GaugeVec
}

func GetMertics

func GetMertics() *Metrics

type Server

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

func NewServer

func NewServer(config *conf.Status) (*Server, error)

func (*Server) GracefulStop

func (s *Server) GracefulStop() error

func (*Server) Serve

func (s *Server) Serve(lis net.Listener) error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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