Documentation ¶
Index ¶
- Variables
- func AddSMTotalReceiveBytesOnWS(clientKey string, size float64)
- func AddSMTotalTransmitBytesOnWS(clientKey string, size float64)
- func AddSMTotalTransmitErrorBytesOnWS(clientKey string, size float64)
- func IncSMTotalAddConnectionsForWS(clientKey, proto, addr string)
- func IncSMTotalAddPeerAttempt(peer string)
- func IncSMTotalAddWS(clientKey string, peer bool)
- func IncSMTotalPeerConnected(peer string)
- func IncSMTotalPeerDisConnected(peer string)
- func IncSMTotalRemoveConnectionsForWS(clientKey, proto, addr string)
- func IncSMTotalRemoveWS(clientKey string, peer bool)
- func Register()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TotalAddWS = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_add_websocket_session", Help: "Total count of added websocket sessions", }, []string{"clientkey", "peer"}) TotalRemoveWS = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_remove_websocket_session", Help: "Total count of removed websocket sessions", }, []string{"clientkey", "peer"}) TotalAddConnectionsForWS = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_add_connections", Help: "Total count of added connections", }, []string{"clientkey", "proto", "addr"}, ) TotalRemoveConnectionsForWS = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_remove_connections", Help: "Total count of removed connections", }, []string{"clientkey", "proto", "addr"}, ) TotalTransmitBytesOnWS = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_transmit_bytes", Help: "Total bytes transmited", }, []string{"clientkey"}, ) TotalTransmitErrorBytesOnWS = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_transmit_error_bytes", Help: "Total error bytes transmited", }, []string{"clientkey"}, ) TotalReceiveBytesOnWS = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_receive_bytes", Help: "Total bytes recieved", }, []string{"clientkey"}, ) TotalAddPeerAttempt = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_peer_ws_attempt", Help: "Total count of attempts to establish websocket session to other rancher-server", }, []string{"peer"}, ) TotalPeerConnected = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_peer_ws_connected", Help: "Total count of connected websocket sessions to other rancher-server", }, []string{"peer"}, ) TotalPeerDisConnected = prometheus.NewCounterVec( prometheus.CounterOpts{ Subsystem: "session_server", Name: "total_peer_ws_disconnected", Help: "Total count of disconnected websocket sessions from other rancher-server", }, []string{"peer"}, ) )
Functions ¶
func IncSMTotalAddConnectionsForWS ¶
func IncSMTotalAddConnectionsForWS(clientKey, proto, addr string)
func IncSMTotalAddPeerAttempt ¶
func IncSMTotalAddPeerAttempt(peer string)
func IncSMTotalAddWS ¶
func IncSMTotalPeerConnected ¶
func IncSMTotalPeerConnected(peer string)
func IncSMTotalPeerDisConnected ¶
func IncSMTotalPeerDisConnected(peer string)
func IncSMTotalRemoveConnectionsForWS ¶
func IncSMTotalRemoveConnectionsForWS(clientKey, proto, addr string)
func IncSMTotalRemoveWS ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.