metric

package
v1.5.38 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IP         string
	MetricPort uint
}

Config describe the metric server configs.

type Server

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

Server describe the metric server.

func NewMetricServer

func NewMetricServer(c *Config, collectors ...prometheus.Collector) (*Server, error)

NewMetricServer get a new http server for metrics data.

func (*Server) Start

func (s *Server) Start() error

Start brings up the metric server and bind to address and port.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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