Documentation
¶
Index ¶
Constants ¶
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", cell.Config(defaultConfig), cell.Invoke(registerMetricsManager), )
Cell provides the modular metrics registry, metric HTTP server and legacy metrics cell for the operator.
Functions ¶
func DumpMetrics ¶
DumpMetrics gets the current Cilium operator metrics and dumps all into a Metrics structure. If metrics cannot be retrieved, returns an error.
Types ¶
type Config ¶ added in v1.15.0
type Config struct {
OperatorPrometheusServeAddr string
}
Config contains the configuration for the operator-metrics cell.
type RegisterGatherer ¶
type RegisterGatherer interface { prometheus.Registerer prometheus.Gatherer }
var Registry RegisterGatherer
Registry is the global prometheus registry for cilium-operator metrics.
type SharedConfig ¶ added in v1.15.0
type SharedConfig struct { bool }EnableMetrics
SharedConfig contains the configuration that is shared between this module and others.
Click to show internal directories.
Click to hide internal directories.