Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PrometheusNamespace = "gateway_controller"
PrometheusNamespace default metric namespace
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { prometheus.Collector // contains filtered or unexported fields }
Controller defines base metrics about the rbd-gateway
func NewController ¶
func NewController() *Controller
NewController creates a new prometheus collector for the gateway controller operations
func (Controller) Collect ¶
func (cm Controller) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (Controller) Describe ¶
func (cm Controller) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector
func (*Controller) SetServerNum ¶
func (cm *Controller) SetServerNum(httpNum, tcpNum int)
SetServerNum sets the number of active domain
Click to show internal directories.
Click to hide internal directories.