prom

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeSystemEventException = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "node_sys_event_exception",
		Help: "exceptions when handling system event",
	})
	NodeUserEventException = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "node_user_event_exception",
		Help: "exceptions when handling user event",
	})
	NodeGraphNodes = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "node_graph_nodes",
		Help: "node number in all graph",
	})
	NodeGraphLinks = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "node_graph_links",
		Help: "link number in all graph",
	})
	CreatedSession = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "created_session",
		Help: "Created session",
	})
	StartedSession = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "started_session",
		Help: "Created as well as started session",
	})
	AllSession = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "all_session",
		Help: "Total created sessions since start-up",
	})

	SessionAction = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "session_action",
		Help: "executed action on session",
	}, []string{"cmd", "type"})
	SessionGoroutine = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "session_goroutine",
		Help: "goroutine for session(send,recv,recv_ctrl)",
	}, []string{"type"})
	UsedPortPair = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "used_port_pair",
		Help: "Port pairs allocated",
	})
)

Functions

func InitCollector

func InitCollector()

Types

This section is empty.

Jump to

Keyboard shortcuts

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