monitoring

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitoringController

type MonitoringController struct {
	Shutdown         chan bool
	ShutdownComplete chan bool
	// contains filtered or unexported fields
}

func NewMonitoringController

func NewMonitoringController(address string, port int, consul *api.Client, logger *logging.Logger) (*MonitoringController, error)

func (*MonitoringController) Metrics

func (m *MonitoringController) Metrics() *PromMetrics

func (*MonitoringController) Start

func (m *MonitoringController) Start() error

type MonitoringServer

type MonitoringServer struct {
}

func NewMonitoringServer

func NewMonitoringServer() (*MonitoringServer, error)

func (*MonitoringServer) ServeHTTP

func (s *MonitoringServer) ServeHTTP(res http.ResponseWriter, req *http.Request)

type PromMetrics

type PromMetrics struct {
	TotalResponseTimes    *prometheus.SummaryVec
	UpstreamResponseTimes *prometheus.SummaryVec
	Errors                *prometheus.CounterVec
}

func (*PromMetrics) Init

func (m *PromMetrics) Init()

Jump to

Keyboard shortcuts

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