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 ¶
DumpCA writes the root certificate bundle which is used to verify client certificates on incoming requests to 'authCAFile' file.
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.
func RunServer ¶
RunServer starts the server, and watches the tlsCert, tlsKey and authCAFile for changes. If a change happens to both tlsCert and tlsKey or authCAFile, the metrics server is rebuilt and restarted with the current files. Every non-nil return from this function is fatal and will restart the whole operator.