Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListMetrics ¶
func ListMetrics() []operatormetrics.Metric
func NewVMCreated ¶
func NewVMCreated(vm *v1.VirtualMachine)
func SetupMetrics ¶
func SetupMetrics() error
Types ¶
type Decrementer ¶
type Decrementer interface {
Dec()
}
func NewActiveConsoleConnection ¶
func NewActiveConsoleConnection(namespace, name string) Decrementer
NewActiveConsoleConnection increments the metric for active console sessions by one for namespace and name and returns a recorder for decrementing it once the connection is closed
func NewActivePortForwardTunnel ¶
func NewActivePortForwardTunnel(namespace, name string) Decrementer
NewActivePortForwardTunnel increments the metric for active portforward tunnels by one for namespace and name and returns a recorder for decrementing it once the tunnel is closed
func NewActiveUSBRedirConnection ¶
func NewActiveUSBRedirConnection(namespace, name string) Decrementer
NewActiveUSBRedirConnection increments the metric for active USB redirection connections by one for namespace and name and returns a recorder for decrementing it once the connection is closed
func NewActiveVNCConnection ¶
func NewActiveVNCConnection(namespace, name string) Decrementer
NewActiveVNCConnection increments the metric for active VNC connections by one for namespace and name and returns a recorder for decrementing it once the connection is closed