monitor

package
v1.29.0-alpha.135 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package monitor xxx

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
Package prometheus xxx
Package prometheus xxx
Package status xxx
Package status xxx

Jump to

Keyboard shortcuts

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