MCPcopy Create free account
hub / github.com/VictoriaMetrics/operator / init

Function init

internal/controller/operator/controllers.go:98–102  ·  view source on GitHub ↗

InitMetrics adds metrics to the Registry

()

Source from the content-addressed store, hash-verified

96
97// InitMetrics adds metrics to the Registry
98func init() {
99 metrics.Registry.MustRegister(
100 parseObjectErrorsTotal, getObjectsErrorsTotal, conflictErrorsTotal,
101 contextCancelErrorsTotal, activeConverterWatchers, controllerErrorsTotal)
102}
103
104func getDefaultOptions() controller.Options {
105 optionsInit.Do(func() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected