monitoring

package
v0.0.0-...-5032473 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricRegistry = prometheus.NewRegistry()
)

Functions

This section is empty.

Types

type MetricPuller

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

func (*MetricPuller) Report

func (m *MetricPuller) Report()

type MetricPusher

type MetricPusher struct {
	Pusher
}

func (*MetricPusher) Report

func (m *MetricPusher) Report()

type Metricer

type Metricer interface {
	Report()
}

func GetMetricPuller

func GetMetricPuller() Metricer

func GetMetricPusher

func GetMetricPusher() Metricer

type Monitor

type Monitor struct {
	Metricer
}

func (*Monitor) SetReportTunnel

func (m *Monitor) SetReportTunnel(isOneTimeExec bool)

func (*Monitor) TraceMetric

func (m *Monitor) TraceMetric()

type Pusher

type Pusher interface {
	Add() error
	Gatherer(prometheus.Gatherer) *push.Pusher
}

Jump to

Keyboard shortcuts

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