common

package
v0.0.0-...-31fc70c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalErrors = prometheus.NewCounter(
		prometheus.CounterOpts{
			Name: "total_errors",
			Help: "Number of errors from all controllers",
		},
	)
	ControllerMetrics = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "resource_total",
		Help: "Total number of resource handled per controller",
	}, []string{"controller"})
)

Functions

func GetElasticsearchFromRef

func GetElasticsearchFromRef(ctx context.Context, c client.Client, o client.Object, esRef shared.ElasticsearchRef) (es *elasticsearchcrd.Elasticsearch, err error)

GetElasticsearchRef permit to get Elasticsearch

func GetKibanaFromRef

func GetKibanaFromRef(ctx context.Context, c client.Client, o client.Object, kbRef shared.KibanaRef) (kb *kibanacrd.Kibana, err error)

GetKibanaRef permit to get Kibana

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL