Documentation ¶
Index ¶
- Constants
- Variables
- func ExposeMetrics(host string, metricPort int, stopCh <-chan struct{}, wg *sync.WaitGroup)
- func LogDebug(msg string, args ...interface{})
- func LogError(msg string, args ...interface{})
- func LogFatal(msg string, args ...interface{})
- func LogInfo(msg string, args ...interface{})
- type Operator
- type Options
Constants ¶
View Source
const (
// MetricNamespace used to prefix metrics
MetricNamespace = "prometheus_fusion"
)
View Source
const (
// PrometheusConfigMapAnnotation is used to identify the configmap used by Prometheus
PrometheusConfigMapAnnotation = "prometheus.io/configmap"
)
Variables ¶
View Source
var (
// VERSION of the fusion
VERSION = "0.0.0.dev"
)
Functions ¶
func ExposeMetrics ¶
ExposeMetrics exposes the above defined metrics on <host>:<metricPort>/metrics
func LogDebug ¶
func LogDebug(msg string, args ...interface{})
LogDebug logs debug messages, if DEBUG is enabled
Types ¶
type Operator ¶
type Operator struct { Options ResyncPeriod time.Duration RecheckPeriod time.Duration // contains filtered or unexported fields }
Operator is the CNAME operator (fusion)
type Options ¶
type Options struct { KubeConfig string ConfigmapAnnotation string PrometheusConfigMapNamespace string PrometheusConfigMapName string PreservedConfigmapKeys []string MetricPort int ResyncPeriod int RecheckPeriod int Threadiness int LogLevel int }
Options to configure the operator
func (*Options) CheckOptions ¶
CheckOptions verifies the Options and sets default values, if necessary
Source Files ¶
Click to show internal directories.
Click to hide internal directories.