pub struct ReportConfig {
pub enabled: bool,
pub collect: bool,
pub allowlist: HashSet<String>,
pub blocklist: HashSet<String>,
pub metric_blocklist: HashSet<String>,
}Expand description
[report] section: serve monitord’s own health metrics to
systemd-report over io.systemd.Metrics (see crate::report), and
collect other systemd-report sources (/run/systemd/report/*, systemd
v260+; see crate::report_collector).
Fields§
§enabled: boolServe io.systemd.Metrics on /run/systemd/report/io.monitord
(or a socket-activated fd). Daemon mode only; off by default.
collect: boolCollect every io.systemd.Metrics source under /run/systemd/report/
except those monitord already parses into typed stats. Off by default:
a single source may publish thousands of metrics.
allowlist: HashSet<String>Only collect these sources (socket names, e.g. io.systemd.Basic).
Lowercased by the INI parser, so matched case-insensitively.
blocklist: HashSet<String>Never collect these sources
metric_blocklist: HashSet<String>Never collect these metrics, from any source: full metric names
(e.g. io.systemd.Basic.MachineID), each also matching every name
under it at a dot boundary (io.systemd.Basic.SMBIOS covers
io.systemd.Basic.SMBIOS.SystemVendor). Lowercased by the INI
parser, so matched case-insensitively. The example monitord.conf
lists host identifiers here; see the README for why.
Trait Implementations§
Source§impl Clone for ReportConfig
impl Clone for ReportConfig
Source§fn clone(&self) -> ReportConfig
fn clone(&self) -> ReportConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReportConfig
impl Debug for ReportConfig
Source§impl Default for ReportConfig
impl Default for ReportConfig
Source§fn default() -> ReportConfig
fn default() -> ReportConfig
impl Eq for ReportConfig
Source§impl PartialEq for ReportConfig
impl PartialEq for ReportConfig
Source§fn eq(&self, other: &ReportConfig) -> bool
fn eq(&self, other: &ReportConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReportConfig
Auto Trait Implementations§
impl Freeze for ReportConfig
impl RefUnwindSafe for ReportConfig
impl Send for ReportConfig
impl Sync for ReportConfig
impl Unpin for ReportConfig
impl UnsafeUnpin for ReportConfig
impl UnwindSafe for ReportConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.