pub struct GlobalControllerMetrics {Show 36 fields
pub bootstrap_in_progress: bool,
pub buffered_input_bytes: i64,
pub buffered_input_records: i64,
pub commit_progress: Option<CommitProgressSummary>,
pub concurrent_bootstrap_phase: ConcurrentBootstrapPhase,
pub concurrent_bootstrap_progress: Option<CommitProgressSummary>,
pub cpu_msecs: i64,
pub disk_available_bytes: Option<i64>,
pub disk_total_bytes: Option<i64>,
pub incarnation_uuid: Uuid,
pub initial_start_time: i64,
pub memory_pressure: MemoryPressure,
pub memory_pressure_epoch: i64,
pub output_stall_msecs: i64,
pub pipeline_complete: bool,
pub platform_version: String,
pub rss_bytes: i64,
pub runtime_elapsed_msecs: i64,
pub runtime_version: String,
pub start_time: i64,
pub state: PipelineState,
pub storage_bytes: i64,
pub storage_mb_secs: i64,
pub total_completed_records: i64,
pub total_completed_steps: i64,
pub total_initiated_steps: i64,
pub total_input_bytes: i64,
pub total_input_records: i64,
pub total_processed_bytes: i64,
pub total_processed_records: i64,
pub transaction_id: i64,
pub transaction_initiators: TransactionInitiators,
pub transaction_msecs: Option<i64>,
pub transaction_records: Option<i64>,
pub transaction_status: TransactionStatus,
pub uptime_msecs: i64,
}Expand description
Global controller metrics.
JSON schema
{
"description": "Global controller metrics.",
"type": "object",
"required": [
"bootstrap_in_progress",
"buffered_input_bytes",
"buffered_input_records",
"concurrent_bootstrap_phase",
"cpu_msecs",
"incarnation_uuid",
"initial_start_time",
"memory_pressure",
"memory_pressure_epoch",
"output_stall_msecs",
"pipeline_complete",
"platform_version",
"rss_bytes",
"runtime_elapsed_msecs",
"runtime_version",
"start_time",
"state",
"storage_bytes",
"storage_mb_secs",
"total_completed_records",
"total_completed_steps",
"total_initiated_steps",
"total_input_bytes",
"total_input_records",
"total_processed_bytes",
"total_processed_records",
"transaction_id",
"transaction_initiators",
"transaction_status",
"uptime_msecs"
],
"properties": {
"bootstrap_in_progress": {
"description": "The pipeline has been resumed from a checkpoint and is currently bootstrapping new and modified views.",
"type": "boolean"
},
"buffered_input_bytes": {
"description": "Total number of bytes currently buffered by all endpoints.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"buffered_input_records": {
"description": "Total number of records currently buffered by all endpoints.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"commit_progress": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/CommitProgressSummary"
}
]
}
]
},
"concurrent_bootstrap_phase": {
"$ref": "#/components/schemas/ConcurrentBootstrapPhase"
},
"concurrent_bootstrap_progress": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/CommitProgressSummary"
}
]
}
]
},
"cpu_msecs": {
"description": "CPU time used by the pipeline across all threads, in milliseconds.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"disk_available_bytes": {
"description": "Bytes the pipeline can still write to its storage disk; absent when unknown.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"disk_total_bytes": {
"description": "Capacity of the pipeline's storage disk, in bytes; absent when unknown.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"incarnation_uuid": {
"description": "Uniquely identifies the pipeline process that started at start_time.",
"type": "string",
"format": "uuid"
},
"initial_start_time": {
"description": "Time at which the pipeline process from which we resumed started, in seconds since the epoch.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"memory_pressure": {
"$ref": "#/components/schemas/MemoryPressure"
},
"memory_pressure_epoch": {
"description": "Memory pressure epoch.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"output_stall_msecs": {
"description": "If the pipeline is stalled because one or more output connectors' output\nbuffers are full, this is the number of milliseconds that the current\nstall has lasted.\n\nIf this is nonzero, then the output connectors causing the stall can be\nidentified by noticing `ExternalOutputEndpointMetrics::queued_records`\nis greater than or equal to `ConnectorConfig::max_queued_records`.\n\nIn the ordinary case, the pipeline is not stalled, and this value is 0.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"pipeline_complete": {
"description": "True if the pipeline has processed all input data to completion.",
"type": "boolean"
},
"platform_version": {
"description": "Version of the platform that compiled the pipeline, such as\n`0.349.0+enterprise`.\n\nThis is the platform's own version, which the compiler records in the\nbinary.",
"type": "string"
},
"rss_bytes": {
"description": "Resident set size of the pipeline process, in bytes.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"runtime_elapsed_msecs": {
"description": "Time elapsed while the pipeline is executing a step, multiplied by the number of threads, in milliseconds.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"runtime_version": {
"description": "Runtime the pipeline was compiled against.\n\nEqual to `platform_version` when the program uses the platform's own\nruntime; otherwise the selected runtime, a git SHA, a `vX.Y.Z` tag,\nor `gen2`.",
"type": "string"
},
"start_time": {
"description": "Time at which the pipeline process started, in seconds since the epoch.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"state": {
"$ref": "#/components/schemas/PipelineState"
},
"storage_bytes": {
"description": "Current storage usage in bytes.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"storage_mb_secs": {
"description": "Storage usage integrated over time, in megabytes * seconds.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"total_completed_records": {
"description": "Total number of input records processed to completion.\n\nIn a multihost pipeline, this counts the input records that all of the\nhosts received. If a host runs an older version that does not report\nits count to the coordinator, this is instead the sum of the counts\nthat each host reports for its own input, which can include input whose\noutput an output connector on a different host has not yet processed.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"total_completed_steps": {
"description": "Number of steps whose input records have been processed to completion.\n\nA record is processed to completion if it has been processed by the DBSP engine and\nall outputs derived from it have been processed by all output connectors.\n\n# Interpretation\n\nThis is a count, not a step number. If `total_completed_steps` is 0, no\nsteps have been processed to completion. If `total_completed_steps >\n0`, then the last step whose input records have been processed to\ncompletion is `total_completed_steps - 1`. A record that was ingested\nwhen `total_initiated_steps` was `n` is fully processed when\n`total_completed_steps >= n`.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"total_initiated_steps": {
"description": "Number of steps that have been initiated.\n\n# Interpretation\n\nThis is a count, not a step number. If `total_initiated_steps` is 0, no\nsteps have been initiated. If `total_initiated_steps > 0`, then step\n`total_initiated_steps - 1` has been started and all steps previous to\nthat have been completely processed by the circuit.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"total_input_bytes": {
"description": "Total number of bytes received from all endpoints.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"total_input_records": {
"description": "Total number of records received from all endpoints.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"total_processed_bytes": {
"description": "Total bytes of input records processed by the DBSP engine.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"total_processed_records": {
"description": "Total number of input records processed by the DBSP engine.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"transaction_id": {
"description": "ID of the current transaction or 0 if no transaction is in progress.",
"type": "integer",
"format": "int64"
},
"transaction_initiators": {
"$ref": "#/components/schemas/TransactionInitiators"
},
"transaction_msecs": {
"description": "Elapsed time in milliseconds, according to `transaction_status`:\n\n- [TransactionStatus::TransactionInProgress]: Time that this transaction\nhas been in progress.\n\n- [TransactionStatus::CommitInProgress]: Time that this transaction has\nbeen committing.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"transaction_records": {
"description": "Number of records in this transaction, according to\n`transaction_status`:\n\n- [TransactionStatus::TransactionInProgress]: Number of records added so\nfar. More records might be added.\n\n- [TransactionStatus::CommitInProgress]: Final number of records.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
},
"transaction_status": {
"$ref": "#/components/schemas/TransactionStatus"
},
"uptime_msecs": {
"description": "Time since the pipeline process started, including time that the\npipeline was running or paused.\n\nThis is the elapsed time since `start_time`.",
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
}Fields§
§bootstrap_in_progress: boolThe pipeline has been resumed from a checkpoint and is currently bootstrapping new and modified views.
buffered_input_bytes: i64Total number of bytes currently buffered by all endpoints.
buffered_input_records: i64Total number of records currently buffered by all endpoints.
commit_progress: Option<CommitProgressSummary>§concurrent_bootstrap_phase: ConcurrentBootstrapPhase§concurrent_bootstrap_progress: Option<CommitProgressSummary>§cpu_msecs: i64CPU time used by the pipeline across all threads, in milliseconds.
disk_available_bytes: Option<i64>Bytes the pipeline can still write to its storage disk; absent when unknown.
disk_total_bytes: Option<i64>Capacity of the pipeline’s storage disk, in bytes; absent when unknown.
incarnation_uuid: UuidUniquely identifies the pipeline process that started at start_time.
initial_start_time: i64Time at which the pipeline process from which we resumed started, in seconds since the epoch.
memory_pressure: MemoryPressure§memory_pressure_epoch: i64Memory pressure epoch.
output_stall_msecs: i64If 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.
pipeline_complete: boolTrue if the pipeline has processed all input data to completion.
platform_version: StringVersion of the platform that compiled the pipeline, such as
0.349.0+enterprise.
This is the platform’s own version, which the compiler records in the binary.
rss_bytes: i64Resident set size of the pipeline process, in bytes.
runtime_elapsed_msecs: i64Time elapsed while the pipeline is executing a step, multiplied by the number of threads, in milliseconds.
runtime_version: StringRuntime the pipeline was compiled against.
Equal to platform_version when the program uses the platform’s own
runtime; otherwise the selected runtime, a git SHA, a vX.Y.Z tag,
or gen2.
start_time: i64Time at which the pipeline process started, in seconds since the epoch.
state: PipelineState§storage_bytes: i64Current storage usage in bytes.
storage_mb_secs: i64Storage usage integrated over time, in megabytes * seconds.
total_completed_records: i64Total number of input records processed to completion.
In a multihost pipeline, this counts the input records that all of the hosts received. If a host runs an older version that does not report its count to the coordinator, this is instead the sum of the counts that each host reports for its own input, which can include input whose output an output connector on a different host has not yet processed.
total_completed_steps: i64Number 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.
total_initiated_steps: i64Number 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_input_bytes: i64Total number of bytes received from all endpoints.
total_input_records: i64Total number of records received from all endpoints.
total_processed_bytes: i64Total bytes of input records processed by the DBSP engine.
total_processed_records: i64Total number of input records processed by the DBSP engine.
transaction_id: i64ID of the current transaction or 0 if no transaction is in progress.
transaction_initiators: TransactionInitiators§transaction_msecs: Option<i64>Elapsed time in milliseconds, according to transaction_status:
-
TransactionStatus::TransactionInProgress: Time that this transaction has been in progress.
-
TransactionStatus::CommitInProgress: Time that this transaction has been committing.
transaction_records: Option<i64>Number of records in this transaction, according to
transaction_status:
-
TransactionStatus::TransactionInProgress: Number of records added so far. More records might be added.
-
TransactionStatus::CommitInProgress: Final number of records.
transaction_status: TransactionStatus§uptime_msecs: i64Time since the pipeline process started, including time that the pipeline was running or paused.
This is the elapsed time since start_time.
Implementations§
Source§impl GlobalControllerMetrics
impl GlobalControllerMetrics
pub fn builder() -> GlobalControllerMetrics
Trait Implementations§
Source§impl Clone for GlobalControllerMetrics
impl Clone for GlobalControllerMetrics
Source§impl Debug for GlobalControllerMetrics
impl Debug for GlobalControllerMetrics
Source§impl<'de> Deserialize<'de> for GlobalControllerMetrics
impl<'de> Deserialize<'de> for GlobalControllerMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<&GlobalControllerMetrics> for GlobalControllerMetrics
impl From<&GlobalControllerMetrics> for GlobalControllerMetrics
Source§fn from(value: &GlobalControllerMetrics) -> Self
fn from(value: &GlobalControllerMetrics) -> Self
Source§impl From<GlobalControllerMetrics> for GlobalControllerMetrics
impl From<GlobalControllerMetrics> for GlobalControllerMetrics
Source§fn from(value: GlobalControllerMetrics) -> Self
fn from(value: GlobalControllerMetrics) -> Self
Source§impl Serialize for GlobalControllerMetrics
impl Serialize for GlobalControllerMetrics
Source§impl TryFrom<GlobalControllerMetrics> for GlobalControllerMetrics
impl TryFrom<GlobalControllerMetrics> for GlobalControllerMetrics
Source§type Error = ConversionError
type Error = ConversionError
Source§fn try_from(value: GlobalControllerMetrics) -> Result<Self, ConversionError>
fn try_from(value: GlobalControllerMetrics) -> Result<Self, ConversionError>
Auto Trait Implementations§
impl Forget for GlobalControllerMetrics
impl Freeze for GlobalControllerMetrics
impl RefUnwindSafe for GlobalControllerMetrics
impl Send for GlobalControllerMetrics
impl Sync for GlobalControllerMetrics
impl Unpin for GlobalControllerMetrics
impl UnsafeUnpin for GlobalControllerMetrics
impl UnwindSafe for GlobalControllerMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more