pub struct MetricMirroring {
pub enabled: bool,
pub allowlist: Vec<String>,
}Expand description
Which metrics are mirrored to the failover region.
The two settings are grouped because they are consumed together: the routing state of the failover metrics pipeline is derived from both at once. A consumer that watched them separately could rebuild that state from a fresh value of one and a stale value of the other, describing a configuration that was never published; a live view of this struct delivers both from one configuration version instead.
Fields§
§enabled: boolWhether metrics are mirrored to the failover region.
Defaults to false. Mirroring also requires Domain::enabled, but unlike it this setting is read live,
which is the point of it: an operator starts and stops mirroring on a running process.
allowlist: Vec<String>Metrics permitted to be sent to the failover region.
Defaults to empty, which mirrors every metric rather than none: the list narrows mirroring, it does not enable
it. Names match exactly. Read live, alongside enabled, so an operator can restrict mirroring
to the metrics the failover region needs without restarting.
Trait Implementations§
Source§impl Clone for MetricMirroring
impl Clone for MetricMirroring
Source§fn clone(&self) -> MetricMirroring
fn clone(&self) -> MetricMirroring
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more