pub enum MetricDetailLevel {
Process,
Frontend,
Cluster,
Backend,
}Expand description
Cardinality knob for metrics labels in the StatsD network drain.
Mirrors HAProxy’s process|frontend|backend|server extra-counters opt-in.
Operators choose the lowest level that satisfies their dashboards so that
the keyspace stays bounded. Each level is a SUPERSET of the previous one:
process— proxy-only counters (no listener, cluster, or backend label).frontend— adds per-listener (frontend) breakdown.cluster— adds per-cluster aggregation. Default (preserves the pre-knob behaviour).backend— adds per-backend aggregation (cluster + backend, highest cardinality).
Variants§
Trait Implementations§
Source§impl Clone for MetricDetailLevel
impl Clone for MetricDetailLevel
Source§fn clone(&self) -> MetricDetailLevel
fn clone(&self) -> MetricDetailLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricDetailLevel
impl Debug for MetricDetailLevel
Source§impl Default for MetricDetailLevel
impl Default for MetricDetailLevel
Source§impl<'de> Deserialize<'de> for MetricDetailLevel
impl<'de> Deserialize<'de> for MetricDetailLevel
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 From<MetricDetail> for MetricDetailLevel
impl From<MetricDetail> for MetricDetailLevel
Source§fn from(detail: MetricDetail) -> Self
fn from(detail: MetricDetail) -> Self
Reverse of [From<MetricDetailLevel> for MetricDetail] — used by the
worker side to convert the protobuf wire enum back into the
configuration enum before passing it to sozu_lib::metrics::setup.
Source§impl From<MetricDetailLevel> for MetricDetail
impl From<MetricDetailLevel> for MetricDetail
Source§fn from(level: MetricDetailLevel) -> Self
fn from(level: MetricDetailLevel) -> Self
Converts to this type from the input type.
Source§impl Hash for MetricDetailLevel
impl Hash for MetricDetailLevel
Source§impl Ord for MetricDetailLevel
impl Ord for MetricDetailLevel
Source§fn cmp(&self, other: &MetricDetailLevel) -> Ordering
fn cmp(&self, other: &MetricDetailLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MetricDetailLevel
impl PartialEq for MetricDetailLevel
Source§fn eq(&self, other: &MetricDetailLevel) -> bool
fn eq(&self, other: &MetricDetailLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MetricDetailLevel
impl PartialOrd for MetricDetailLevel
Source§impl Serialize for MetricDetailLevel
impl Serialize for MetricDetailLevel
impl Copy for MetricDetailLevel
impl Eq for MetricDetailLevel
impl StructuralPartialEq for MetricDetailLevel
Auto Trait Implementations§
impl Freeze for MetricDetailLevel
impl RefUnwindSafe for MetricDetailLevel
impl Send for MetricDetailLevel
impl Sync for MetricDetailLevel
impl Unpin for MetricDetailLevel
impl UnsafeUnpin for MetricDetailLevel
impl UnwindSafe for MetricDetailLevel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.