metrics

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(params Params)

Types

type Collector

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

Collector implements prometheus.Collector interface

func NewCollector

func NewCollector(log logr.Logger, experimentStore core.ExperimentStore, scheduleStore core.ScheduleStore, workflowStore core.WorkflowStore) *Collector

NewCollector initializes metrics and collector

func (*Collector) Collect

func (collector *Collector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (*Collector) Describe

func (collector *Collector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

type Params

type Params struct {
	fx.In
	Log             logr.Logger
	Registry        *prometheus.Registry
	ExperimentStore core.ExperimentStore
	ScheduleStore   core.ScheduleStore
	WorkflowStore   core.WorkflowStore
}

Jump to

Keyboard shortcuts

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