Documentation
¶
Index ¶
Constants ¶
View Source
const ( // OperatorPrometheusEnableTLS enable TLS for prometheus server OperatorPrometheusEnableTLS = "operator-prometheus-enable-tls" // OperatorPrometheusTLSCertFile specifies path to TLS certificate file // for prometheus server. The file must contain PEM encoded data. OperatorPrometheusTLSCertFile = "operator-prometheus-tls-cert-file" // OperatorPrometheusTLSKeyFile specifies path to TLS private key file // for prometheus server. The file must contain PEM encoded data. OperatorPrometheusTLSKeyFile = "operator-prometheus-tls-key-file" // OperatorPrometheusTLSClientCAFiles specifies path to one or more TLS client CA certificates files // to use for TLS with mutual authentication (mTLS) for prometheus server. // The files must contain PEM encoded data. // When provided, this option effectively enables mTLS. OperatorPrometheusTLSClientCAFiles = "operator-prometheus-tls-client-ca-files" )
View Source
const ( // OperatorPrometheusServeAddr IP:Port on which to serve prometheus metrics // (pass ":<port>" to bind on all interfaces). OperatorPrometheusServeAddr = "operator-prometheus-serve-addr" )
Variables ¶
View Source
var Cell = cell.Module( "operator-metrics", "Operator Metrics", certloaderGroup, cell.Config(defaultConfig), cell.Provide(func(conf Config) metrics.RegistryConfig { return metrics.RegistryConfig{ PrometheusServeAddr: conf.OperatorPrometheusServeAddr, } }), metrics.NewCell("operator"), cell.Invoke(initializeMetrics), )
Cell provides the modular metrics registry, metric HTTP server and legacy metrics cell for the operator.
Functions ¶
Types ¶
type Config ¶ added in v1.15.0
type Config struct {
OperatorPrometheusServeAddr string
}
Config contains the configuration for the operator-metrics cell.
type SharedConfig ¶ added in v1.15.0
type SharedConfig struct {
EnableMetrics bool
}
SharedConfig contains the configuration that is shared between this module and others.
Click to show internal directories.
Click to hide internal directories.