metrics

package
v2.7.7+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructOrUpdateMetric

func ConstructOrUpdateMetric(metric prometheus.Metric, metricSpec *wfv1.Prometheus) (prometheus.Metric, error)

func ConstructRealTimeGaugeMetric

func ConstructRealTimeGaugeMetric(metricSpec *wfv1.Prometheus, valueFunc func() float64) prometheus.Metric

func NewMetricsRegistry

func NewMetricsRegistry(metricsProvider MetricsProvider, informer cache.SharedIndexInformer, disableLegacyMetrics bool) *prometheus.Registry

func NewTelemetryRegistry

func NewTelemetryRegistry() *prometheus.Registry

NewTelemetryRegistry creates a new prometheus registry that collects telemetry

func RunServer

func RunServer(ctx context.Context, config config.PrometheusConfig, registry *prometheus.Registry)

RunServer starts a metrics server

Types

type MetricsProvider

type MetricsProvider interface {
	GetMetrics() map[string]prometheus.Metric
}

type RealTimeMetric

type RealTimeMetric struct {
	Func func() float64
}

Jump to

Keyboard shortcuts

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