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.
Click to show internal directories.
Click to hide internal directories.