monitor

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

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

Monitor monitoring data for bcs-loadbalance

func NewMonitor

func NewMonitor(addr string, port int) *Monitor

NewMonitor create clb monitor

func (*Monitor) Close

func (cm *Monitor) Close() error

Close close monitor

func (*Monitor) RegisterResource

func (cm *Monitor) RegisterResource(mr Resource)

RegisterResource register resource to monitor

func (*Monitor) Run

func (cm *Monitor) Run() error

Run start monitor server

type Resource

type Resource interface {
	Register(container *restful.Container)
}

Resource for a kind of clb metric

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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