Skip to main content

ExternalGlobalControllerMetrics

Struct ExternalGlobalControllerMetrics 

Source
pub struct ExternalGlobalControllerMetrics {
Show 30 fields pub state: PipelineState, pub bootstrap_in_progress: bool, pub transaction_status: TransactionStatus, pub transaction_id: TransactionId, pub transaction_msecs: Option<u64>, pub transaction_records: Option<u64>, pub commit_progress: Option<CommitProgressSummary>, pub transaction_initiators: ExternalTransactionInitiators, pub rss_bytes: u64, pub memory_pressure: MemoryPressure, pub memory_pressure_epoch: u64, pub cpu_msecs: u64, pub uptime_msecs: u64, pub start_time: DateTime<Utc>, pub incarnation_uuid: Uuid, pub initial_start_time: DateTime<Utc>, pub storage_bytes: u64, pub storage_mb_secs: u64, pub runtime_elapsed_msecs: u64, pub buffered_input_records: u64, pub buffered_input_bytes: u64, pub total_input_records: u64, pub total_input_bytes: u64, pub total_processed_records: u64, pub total_processed_bytes: u64, pub total_completed_records: u64, pub output_stall_msecs: u64, pub total_initiated_steps: Step, pub total_completed_steps: Step, pub pipeline_complete: bool,
}
Expand description

Global controller metrics.

Fields§

§state: PipelineState

State of the pipeline: running, paused, or terminating.

§bootstrap_in_progress: bool

The pipeline has been resumed from a checkpoint and is currently bootstrapping new and modified views.

§transaction_status: TransactionStatus

Status of the current transaction.

§transaction_id: TransactionId

ID of the current transaction or 0 if no transaction is in progress.

§transaction_msecs: Option<u64>

Elapsed time in milliseconds, according to transaction_status:

§transaction_records: Option<u64>

Number of records in this transaction, according to transaction_status:

§commit_progress: Option<CommitProgressSummary>

Progress of the current transaction commit, if one is in progress.

§transaction_initiators: ExternalTransactionInitiators

Entities that initiated the current transaction.

§rss_bytes: u64

Resident set size of the pipeline process, in bytes.

§memory_pressure: MemoryPressure

Memory pressure.

§memory_pressure_epoch: u64

Memory pressure epoch.

§cpu_msecs: u64

CPU time used by the pipeline across all threads, in milliseconds.

§uptime_msecs: u64

Time since the pipeline process started, including time that the pipeline was running or paused.

This is the elapsed time since start_time.

§start_time: DateTime<Utc>

Time at which the pipeline process started, in seconds since the epoch.

§incarnation_uuid: Uuid

Uniquely identifies the pipeline process that started at start_time.

§initial_start_time: DateTime<Utc>

Time at which the pipeline process from which we resumed started, in seconds since the epoch.

§storage_bytes: u64

Current storage usage in bytes.

§storage_mb_secs: u64

Storage usage integrated over time, in megabytes * seconds.

§runtime_elapsed_msecs: u64

Time elapsed while the pipeline is executing a step, multiplied by the number of threads, in milliseconds.

§buffered_input_records: u64

Total number of records currently buffered by all endpoints.

§buffered_input_bytes: u64

Total number of bytes currently buffered by all endpoints.

§total_input_records: u64

Total number of records received from all endpoints.

§total_input_bytes: u64

Total number of bytes received from all endpoints.

§total_processed_records: u64

Total number of input records processed by the DBSP engine.

§total_processed_bytes: u64

Total bytes of input records processed by the DBSP engine.

§total_completed_records: u64

Total number of input records processed to completion.

§output_stall_msecs: u64

If the pipeline is stalled because one or more output connectors’ output buffers are full, this is the number of milliseconds that the current stall has lasted.

If this is nonzero, then the output connectors causing the stall can be identified by noticing ExternalOutputEndpointMetrics::queued_records is greater than or equal to ConnectorConfig::max_queued_records.

In the ordinary case, the pipeline is not stalled, and this value is 0.

§total_initiated_steps: Step

Number of steps that have been initiated.

§Interpretation

This is a count, not a step number. If total_initiated_steps is 0, no steps have been initiated. If total_initiated_steps > 0, then step total_initiated_steps - 1 has been started and all steps previous to that have been completely processed by the circuit.

§total_completed_steps: Step

Number of steps whose input records have been processed to completion.

A record is processed to completion if it has been processed by the DBSP engine and all outputs derived from it have been processed by all output connectors.

§Interpretation

This is a count, not a step number. If total_completed_steps is 0, no steps have been processed to completion. If total_completed_steps > 0, then the last step whose input records have been processed to completion is total_completed_steps - 1. A record that was ingested when total_initiated_steps was n is fully processed when total_completed_steps >= n.

§pipeline_complete: bool

True if the pipeline has processed all input data to completion.

Trait Implementations§

Source§

impl Debug for ExternalGlobalControllerMetrics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExternalGlobalControllerMetrics

Source§

fn default() -> ExternalGlobalControllerMetrics

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ExternalGlobalControllerMetrics

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ExternalGlobalControllerMetrics

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'__s> ToSchema<'__s> for ExternalGlobalControllerMetrics

Source§

fn schema() -> (&'__s str, RefOr<Schema>)

Return a tuple of name and schema or reference to a schema that can be referenced by the name or inlined directly to responses, request bodies or parameters.
Source§

fn aliases() -> Vec<(&'__s str, Schema)>

Optional set of alias schemas for the ToSchema::schema. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,