prometheus

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatherer

type Gatherer interface {
	Gather() error
}

Gatherer is a reflection of an object in the processor (e.g. trigger, runtime, worker) that holds prometheus metrics. when Gather() is called, the resource is queried for its primitive statistics. this way we decouple prometheus metrics from the fast path

type TriggerGatherer

type TriggerGatherer struct {
	// contains filtered or unexported fields
}

func NewTriggerGatherer

func NewTriggerGatherer(instanceName string,
	trigger trigger.Trigger,
	logger logger.Logger,
	metricRegistry *prometheus.Registry) (*TriggerGatherer, error)

func (*TriggerGatherer) Gather

func (tg *TriggerGatherer) Gather() error

type WorkerGatherer

type WorkerGatherer struct {
	// contains filtered or unexported fields
}

func NewWorkerGatherer

func NewWorkerGatherer(instanceName string,
	trigger trigger.Trigger,
	logger logger.Logger,
	worker *worker.Worker,
	metricRegistry *prometheus.Registry) (*WorkerGatherer, error)

func (*WorkerGatherer) Gather

func (wg *WorkerGatherer) Gather() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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