Documentation ¶
Index ¶
- func AddHealthMetrics(pulse Pulse, prometheusSubsystem string)
- func AddHealthPort(pulse Pulse, healthPort int)
- func AddSignalHandler(pulse Pulse)
- func ConfigureLogging(debug bool)
- func ConfigureMetrics(job string, prometheusLabels KeyValues, pushgatewayURL string, ...)
- type CommaSeparatedValues
- type KeyValue
- type KeyValues
- type Pulse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHealthMetrics ¶
AddHealthMetrics adds a global health metric for the given pulse. This should only be called a single time per binary.
func AddHealthPort ¶
AddHealthPort is used to expose the health over http.
func AddSignalHandler ¶
func AddSignalHandler(pulse Pulse)
AddSignalHandler allows the controller to shutdown gracefully by respecting SIGTERM.
func ConfigureLogging ¶
func ConfigureLogging(debug bool)
ConfigureLogging sets logging to Stdout and manages setting debug level
Types ¶
type CommaSeparatedValues ¶
type CommaSeparatedValues []string
CommaSeparatedValues represents a slice of strings that were originally separated by ','.
func (*CommaSeparatedValues) Set ¶
func (c *CommaSeparatedValues) Set(value string) error
Set binds a comma separated command line flag value to a KeyValue.
func (*CommaSeparatedValues) String ¶
func (c *CommaSeparatedValues) String() string
type KeyValue ¶
type KeyValue struct {
// contains filtered or unexported fields
}
KeyValue is a single 'key=value' pair
Click to show internal directories.
Click to hide internal directories.