Documentation ¶
Index ¶
Constants ¶
View Source
const ( NamespaceLabel string = "namespace" LimitMemMetric string = "stonesoup_mem_limit_throttle_total" LimitCPUMetric string = "stonesoup_cpu_limit_throttle_total" ReqMemMetric string = "stonesoup_mem_req_throttle_total" ReqCPUMetric string = "stonesoup_cpu_req_throttle_total" PodCountMetric string = "stonesoup_pod_count_throttle_total" )
Variables ¶
This section is empty.
Functions ¶
func InitPrometheus ¶
func InitPrometheus(client client.Client, c *Controller)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(cfg *rest.Config) (*Controller, error)
func NewControllerForTest ¶
func NewControllerForTest() *Controller
func (*Controller) RegisterEventInformer ¶
func (c *Controller) RegisterEventInformer(namespace string) error
func (*Controller) UnregisterEventInformer ¶
func (c *Controller) UnregisterEventInformer(namespace string)
Click to show internal directories.
Click to hide internal directories.