pub struct TelemetrySnapshot {
pub operators: Vec<OperatorSnapshot>,
pub tiers: TierSnapshot,
pub spill: SpillSnapshot,
pub plan: Vec<PlanNodeSummary>,
pub capacity: TierCapacity,
}Expand description
Everything the dashboard renders, captured at one instant.
Fields§
§operators: Vec<OperatorSnapshot>Per-operator counters, in registration order.
tiers: TierSnapshotMemory tier gauges.
spill: SpillSnapshotSpill counters.
plan: Vec<PlanNodeSummary>The displayed plan.
capacity: TierCapacityTier capacities, and whether the query path fills the tiers at all.
Implementations§
Source§impl TelemetrySnapshot
impl TelemetrySnapshot
Sourcepub fn to_prometheus(&self) -> String
pub fn to_prometheus(&self) -> String
Renders the snapshot as Prometheus text (text/plain; version=0.0.4).
Written by hand rather than through a metrics crate: the counters are
already the right shape, the output is a dozen lines, and a scrape
endpoint is not worth a dependency tree in a query engine. Operator
counters carry operator and backend labels; the tier gauges and
spill counters carry none.
Label values are escaped per the exposition format, because an
operator name is GpuFilterExec today and a user-supplied string the
moment someone adds one.
Trait Implementations§
Source§impl Clone for TelemetrySnapshot
impl Clone for TelemetrySnapshot
Source§impl Debug for TelemetrySnapshot
impl Debug for TelemetrySnapshot
Source§impl Default for TelemetrySnapshot
impl Default for TelemetrySnapshot
Source§impl<'de> Deserialize<'de> for TelemetrySnapshot
impl<'de> Deserialize<'de> for TelemetrySnapshot
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TelemetrySnapshot
impl PartialEq for TelemetrySnapshot
Source§impl Serialize for TelemetrySnapshot
impl Serialize for TelemetrySnapshot
impl StructuralPartialEq for TelemetrySnapshot
Auto Trait Implementations§
impl Freeze for TelemetrySnapshot
impl RefUnwindSafe for TelemetrySnapshot
impl Send for TelemetrySnapshot
impl Sync for TelemetrySnapshot
impl Unpin for TelemetrySnapshot
impl UnsafeUnpin for TelemetrySnapshot
impl UnwindSafe for TelemetrySnapshot
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
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> ⓘ
Converts
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> ⓘ
Converts
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