metrics

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelPipeline = "pipeline"
	LabelVertex   = "vertex"
	LabelPeriod   = "period"

	VertexProcessingRate  = "vertex_processing_rate"
	VertexPendingMessages = "vertex_pending_messages"
)

Variables

This section is empty.

Functions

func NewMetricsServer added in v0.5.3

func NewMetricsServer(vertex *dfv1.Vertex, opts ...Option) *metricsServer

NewMetricsServer returns a Prometheus metrics server instance, which can be used to start an HTTPS service to expose Prometheus metrics.

Types

type Option added in v0.5.3

type Option func(*metricsServer)

func WithLagReader added in v0.5.3

func WithLagReader(r isb.LagReader) Option

func WithLookbackSeconds added in v0.5.3

func WithLookbackSeconds(seconds int64) Option

func WithRater added in v0.5.3

func WithRater(r isb.Ratable) Option

func WithRefreshInterval added in v0.5.3

func WithRefreshInterval(d time.Duration) Option

Jump to

Keyboard shortcuts

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