Documentation
¶
Index ¶
Constants ¶
View Source
const ( // VeryHighFalseDesiredSize : If the actual desired size is unknown, set it to this // and the desired_size metric will not be output for the group VeryHighFalseDesiredSize = 9999999999 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupState ¶
GroupState represents a group of nodes and their states
type Reason ¶
type Reason string
Reason represents a reason that the controller would want to delete a node
const ( // HasDeletionLabel means the node has the label specified in config.Ops.RequestDeletionLabel HasDeletionLabel Reason = "has_deletion_label" // TooOld means the node is older than the duration specified by config.Ops.DeletionAge TooOld Reason = "too_old" // ConfigurationChanged means the node configuration is out of sync with the ASG config ConfigurationChanged Reason = "configuration_changed" )
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is responsible for storing and serving prometheus metrics
func (*Reporter) Handler ¶
func (m *Reporter) Handler(rsp http.ResponseWriter, req *http.Request)
Handler returns metrics in response to an HTTP request
func (*Reporter) SetGroupState ¶
func (m *Reporter) SetGroupState(s map[string]GroupState)
SetGroupState sets what the controller thinks is the state of the group
Click to show internal directories.
Click to hide internal directories.