metrics

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObserveTransportBindingWait added in v0.3.0

func ObserveTransportBindingWait(transportName, phase string, duration time.Duration)

ObserveTransportBindingWait records how long a StoryRun has waited (or waited before succeeding) for TransportBindings to appear.

func RecordConnectorCapabilityChange added in v0.3.0

func RecordConnectorCapabilityChange(namespace, binding, field string)

RecordConnectorCapabilityChange increments the counter for the provided binding/field.

func RecordConnectorCapabilityFieldEvent added in v0.3.0

func RecordConnectorCapabilityFieldEvent(namespace, binding, field, outcome string)

RecordConnectorCapabilityFieldEvent records capability field observations keyed by outcome.

func RecordConnectorConnectionState added in v0.3.0

func RecordConnectorConnectionState(endpoint string, connected bool)

RecordConnectorConnectionState sets the connection state gauge for the given hub endpoint. Pass connected=true when the connector establishes a connection, false when disconnected.

func RecordConnectorControlDirective added in v0.3.0

func RecordConnectorControlDirective(namespace, binding, direction, typ string)

RecordConnectorControlDirective increments the counter for sent/received control directives.

func RecordConnectorDownstreamDrop added in v0.3.0

func RecordConnectorDownstreamDrop(namespace, binding, reason string)

RecordConnectorDownstreamDrop increments the counter when Subscribe drops a frame.

func RecordConnectorObservationDrop added in v0.3.0

func RecordConnectorObservationDrop(namespace, binding, reason string)

RecordConnectorObservationDrop increments the counter when an observation is dropped.

func RecordConnectorObservationSkip added in v0.3.0

func RecordConnectorObservationSkip(namespace, binding, reason string)

RecordConnectorObservationSkip increments the counter when an observation is skipped.

func RecordConnectorPatchFailure added in v0.3.0

func RecordConnectorPatchFailure(namespace, binding string)

RecordConnectorPatchFailure increments the counter when TransportBinding status patches fail.

func RecordConnectorPatchSuccess added in v0.3.0

func RecordConnectorPatchSuccess(namespace, binding string)

RecordConnectorPatchSuccess increments the counter when TransportBinding status patches succeed.

func RecordConnectorReporterExit added in v0.3.0

func RecordConnectorReporterExit(namespace, binding, reason string)

RecordConnectorReporterExit increments the counter when the reporter stops draining observations.

func RecordEngramTransportReadyChange added in v0.3.0

func RecordEngramTransportReadyChange(ready bool)

RecordEngramTransportReadyChange increments the readiness-change counter when Engram annotations flip between ready states.

func RecordHubActiveStreams added in v0.3.0

func RecordHubActiveStreams(count float64)

RecordHubActiveStreams sets the current number of active streams in the hub.

func RecordHubBufferBytes

func RecordHubBufferBytes(storyRun, step string, bytes int)

RecordHubBufferBytes records the current buffer size in bytes

func RecordHubBufferFlush

func RecordHubBufferFlush(storyRun, step string, count int)

RecordHubBufferFlush records a successful buffer flush

func RecordHubBufferSize

func RecordHubBufferSize(storyRun, step string, size int)

RecordHubBufferSize records the current buffer size (for autoscaling)

func RecordHubEventTime added in v0.3.0

func RecordHubEventTime(storyRun, step string, eventTime time.Time, lag time.Duration)

RecordHubEventTime records event-time watermark and lag metrics.

func RecordHubHeartbeat added in v0.3.0

func RecordHubHeartbeat(storyRun, step string)

RecordHubHeartbeat records a heartbeat packet received on the stream.

func RecordHubHeartbeatFailure added in v0.3.0

func RecordHubHeartbeatFailure()

RecordHubHeartbeatFailure increments the failure counter when SendHeartbeats fails.

func RecordHubHeartbeatInterval added in v0.3.0

func RecordHubHeartbeatInterval(interval time.Duration)

RecordHubHeartbeatInterval records the currently effective heartbeat interval.

func RecordHubMessageDropped

func RecordHubMessageDropped(storyRun, step, reason string)

RecordHubMessageDropped records a dropped message

func RecordHubMessageReceived

func RecordHubMessageReceived(storyRun, step string)

RecordHubMessageReceived records a received message at the hub

func RecordHubMessageSent

func RecordHubMessageSent(storyRun, step string)

RecordHubMessageSent records a message successfully sent from the hub

func RecordHubRecording added in v0.3.0

func RecordHubRecording(storyRun, step, mode, status string)

RecordHubRecording records stream recording outcomes.

func RecordHubReplayLastAck added in v0.3.0

func RecordHubReplayLastAck(storyRun, step, partition string, ack uint64)

RecordHubReplayLastAck records the last acknowledged sequence for a partition.

func RecordHubReplayPending added in v0.3.0

func RecordHubReplayPending(storyRun, step string, pending int)

RecordHubReplayPending records the current number of unacked messages.

func RecordHubStartupCapabilitiesObservation added in v0.3.0

func RecordHubStartupCapabilitiesObservation(mode string)

RecordHubStartupCapabilitiesObservation records the startup capability mode declared by a connector on the hub stream metadata.

func RecordTransportBindingPending added in v0.3.0

func RecordTransportBindingPending(transportName string)

RecordTransportBindingPending increments the counter when a transport needs to requeue waiting for the operator to seed TransportBindings.

func RecordTransportCleanup added in v0.3.0

func RecordTransportCleanup(namespace string, count int)

RecordTransportCleanup increments the cleanup counter when EnsureCleanUp resets Engram annotations.

func RefreshHubConfigMetrics added in v0.3.0

func RefreshHubConfigMetrics(maxMessages, maxBytes int)

RefreshHubConfigMetrics updates the configuration gauges at runtime. Call this when the operator configuration changes to keep metrics accurate.

func SetConnectorCapabilityListeners added in v0.3.0

func SetConnectorCapabilityListeners(namespace, binding string, count float64)

SetConnectorCapabilityListeners records how many listeners are currently registered.

func StreamServerInterceptor

func StreamServerInterceptor() grpc.StreamServerInterceptor

StreamServerInterceptor records duration and status code for streaming RPCs.

func UnaryServerInterceptor

func UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor records duration and status code for unary RPCs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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