metrics

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr                  string
	NotRespondingList     map[string]bool
	WatchlistLength       prometheus.Gauge
	Uptime                prometheus.Gauge
	NumRunningNamspaces   prometheus.Gauge
	NumSuspendedNamspaces prometheus.Gauge
	NumUnknownNamespaces  prometheus.Gauge
}

Server is the metrics server. It contains all the Prometheus metrics

func Init

func Init() *Server

Init initializes the metrics

func (*Server) Start

func (s *Server) Start() error

Start starts the prometheus server

Jump to

Keyboard shortcuts

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