pub struct MetricsLeversConfig {
pub enabled: bool,
pub exchange: bool,
pub duration: bool,
pub components: bool,
pub component_overrides: BTreeMap<String, bool>,
}Expand description
Metric-family levers for [observability.metrics] in Camel.toml
(dashboard-observability D3).
A non-error family flows only when enabled && <family>, where
<family> is exchange, duration, or components.
component_overrides narrows the component-operations family per
component: a component without an override inherits components, and
the master enabled switch is applied last, so it always wins. No lever
exists for the error family — camel_errors_total is structurally
non-disableable (metrics-configuration Req 2).
Fields§
§enabled: bool§exchange: bool§duration: bool§components: bool§component_overrides: BTreeMap<String, bool>Per-component enablement for the component-operations family,
keyed by component name. An absent key inherits components.
Implementations§
Source§impl MetricsLeversConfig
impl MetricsLeversConfig
Sourcepub fn exchanges_enabled(&self) -> bool
pub fn exchanges_enabled(&self) -> bool
Whether the exchanges counter family may flow.
Sourcepub fn durations_enabled(&self) -> bool
pub fn durations_enabled(&self) -> bool
Whether the duration histogram family may flow.
Sourcepub fn components_enabled(&self) -> bool
pub fn components_enabled(&self) -> bool
Whether the uniform component-operations counter family may flow
(camel_component_operations_total; the error family is never
gated by any lever).
Sourcepub fn component_enabled(&self, component: &str) -> bool
pub fn component_enabled(&self, component: &str) -> bool
Whether the component-operations family may flow for component.
Precedence: a per-component override wins over components; an
absent override inherits components; the master enabled switch
applies last and can veto every component.
Sourcepub fn component_metrics_levers(&self) -> ComponentMetricsLevers
pub fn component_metrics_levers(&self) -> ComponentMetricsLevers
Snapshots the component-operations levers into the scoped identity
handed to components through
ComponentContext::component_metric_levers.
Trait Implementations§
Source§impl Clone for MetricsLeversConfig
impl Clone for MetricsLeversConfig
Source§impl Debug for MetricsLeversConfig
impl Debug for MetricsLeversConfig
Source§impl Default for MetricsLeversConfig
impl Default for MetricsLeversConfig
Source§impl<'de> Deserialize<'de> for MetricsLeversConfig
Deserializes MetricsLeversConfig via a Raw intermediate with
Option<bool> fields so an absent table and an absent key both mean
“default” (same serde-boundary technique as TracerConfig). Unknown
keys are denied, consistent with the sibling observability tables.
impl<'de> Deserialize<'de> for MetricsLeversConfig
Deserializes MetricsLeversConfig via a Raw intermediate with
Option<bool> fields so an absent table and an absent key both mean
“default” (same serde-boundary technique as TracerConfig). Unknown
keys are denied, consistent with the sibling observability tables.