metrics

package
v0.0.0-...-f54f72f Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(mgr manager.Manager) error

AddToManager adds all metrics exporters for webhosting objects to the manager.

Types

type ThemeExporter

type ThemeExporter struct {
	client.Reader
}

func (*ThemeExporter) AddToManager

func (e *ThemeExporter) AddToManager(mgr manager.Manager) error

func (*ThemeExporter) Collect

func (e *ThemeExporter) Collect(ch chan<- prometheus.Metric)

func (*ThemeExporter) Describe

func (e *ThemeExporter) Describe(ch chan<- *prometheus.Desc)

func (*ThemeExporter) NeedLeaderElection

func (e *ThemeExporter) NeedLeaderElection() bool

NeedLeaderElection tells the manager to run the exporter in all instances.

func (*ThemeExporter) Start

func (e *ThemeExporter) Start(_ context.Context) error

Start registers this collector in the controller-runtime metrics registry. When Start runs, caches have already been started, so we are ready to export metrics.

type WebsiteExporter

type WebsiteExporter struct {
	client.Reader
}

func (*WebsiteExporter) AddToManager

func (e *WebsiteExporter) AddToManager(mgr manager.Manager) error

func (*WebsiteExporter) Collect

func (e *WebsiteExporter) Collect(ch chan<- prometheus.Metric)

func (*WebsiteExporter) Describe

func (e *WebsiteExporter) Describe(ch chan<- *prometheus.Desc)

func (*WebsiteExporter) NeedLeaderElection

func (e *WebsiteExporter) NeedLeaderElection() bool

NeedLeaderElection tells the manager to run the exporter in all instances.

func (*WebsiteExporter) Start

func (e *WebsiteExporter) Start(_ context.Context) error

Start registers this collector in the controller-runtime metrics registry. When Start runs, caches have already been started, so we are ready to export metrics.

Jump to

Keyboard shortcuts

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