39 static constexpr
size_t count = 4;
54 template<
typename Function>
68 template<
typename Function>
Sources of network metrics extracted from the file /proc/net/dev.
static constexpr size_t count
Number of sources.
SourceProcStat & procStat
CPU metrics source (index: 1)
Namespace for sources of metrics objects and operations.
Simple struct to hold references to each source singleton.
SourceEthtool & ethtool
Ethtool metrics source (index: 4)
Sources of CPU metrics extracted from the file /proc/stat.
void forEach(Function func) const
Execute a const function for each source.
void forEach(Function func)
Execute a function for each source.
Sources of memory metrics extracted from the file /proc/meminfo.
SourceProcMeminfo & procMemInfo
Memory metrics source (index: 2)
SourceProcNetDev & procNetDev
Network metrics source (index: 3)
MetricsSourceArray()
Construct a new Metrics Source Array object.