Documentation ¶
Index ¶
- Constants
- func NewMetricsServer(vertex *dfv1.Vertex, opts ...Option) *metricsServer
- type HealthChecker
- type Option
- func NewMetricsOptions(ctx context.Context, vertex *dfv1.Vertex, serverHandler HealthChecker, ...) []Option
- func WithHealthCheckExecutor(f func() error) Option
- func WithLagReaders(r map[string]isb.LagReader) Option
- func WithLookbackSeconds(seconds int64) Option
- func WithRefreshInterval(d time.Duration) Option
Constants ¶
View Source
const ( LabelPipeline = "pipeline" LabelVertex = "vertex" LabelPeriod = "period" LabelVertexReplicaIndex = "replica" LabelPartitionName = "partition_name" VertexPendingMessages = "vertex_pending_messages" )
Variables ¶
This section is empty.
Functions ¶
func NewMetricsServer ¶ added in v0.5.3
NewMetricsServer returns a Prometheus metrics server instance, which can be used to start an HTTPS service to expose Prometheus metrics.
Types ¶
type HealthChecker ¶ added in v0.7.1
type HealthChecker interface { // IsHealthy checks if the user defined container is healthy IsHealthy(ctx context.Context) error }
HealthChecker is the interface to check if the user defined container is connected and ready to use
type Option ¶ added in v0.5.3
type Option func(*metricsServer)
func NewMetricsOptions ¶ added in v0.7.1
func NewMetricsOptions(ctx context.Context, vertex *dfv1.Vertex, serverHandler HealthChecker, readers []isb.BufferReader) []Option
NewMetricsOptions returns a metrics option list.
func WithHealthCheckExecutor ¶ added in v0.5.6
WithHealthCheckExecutor appends a health check executor
func WithLagReaders ¶ added in v0.9.0
WithLagReaders sets the lag readers
func WithLookbackSeconds ¶ added in v0.5.3
WithLookbackSeconds sets lookback seconds for pending calculation
func WithRefreshInterval ¶ added in v0.5.3
WithRefreshInterval sets how often to refresh the pending information
Click to show internal directories.
Click to hide internal directories.