metrics

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementErrorCount

func IncrementErrorCount(component string)

IncrementErrorCount sacloud_autoscaler_grpc_errors_totalを指定のラベルとともにインクリメントする

func InitErrorCount

func InitErrorCount(component string)

Types

type Server

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

Server メトリクス収集用の*http.Serverラッパー

func NewServer

func NewServer(addr string, logger *slog.Logger) *Server

func (*Server) Serve

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

func (*Server) Shutdown

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

Jump to

Keyboard shortcuts

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