Documentation ¶
Index ¶
Constants ¶
const ( AuthConfigMapNamespace = "kube-system" AuthConfigMapName = "extension-apiserver-authentication" AuthConfigMapClientCAKey = "client-ca-file" )
const ( // MetricsPort is the IP port supplied to the HTTP server used for Prometheus, // and matches what is specified in the corresponding Service and ServiceMonitor. MetricsPort = 60000 )
When adding metric names, see https://prometheus.io/docs/practices/naming/#metric-names
Variables ¶
This section is empty.
Functions ¶
func Degraded ¶
func Degraded(deg bool)
Degraded sets the metric that indicates whether the operator is in degraded mode or not.
func DumpCA ¶
func DumpCA(caBundle string)
DumpCA stores the root certificate bundle which is used to verify metric server client certificates. It uses an unbuffered channel to store the data and it it does so only if the CA bundle changed from the current CA bundle on record.
func PodLabelsUsed ¶
func PodLabelsUsed(enable bool)
PodLabelsUsed indicates whether the deprecated Pod label matching functionality is turned on.
func ProfileCalculated ¶
func ProfileCalculated(nodeName, profileName string)
ProfileCalculated keeps track of the number of times a given Tuned profile resource was calculated for node 'nodeName'.
func RegisterVersion ¶
func RegisterVersion(version string)
RegisterVersion exposes the Operator build version.