class SystemMetricsDaemon
Defined at line 37 of file ../../src/cobalt/bin/system-metrics/system_metrics_daemon.h
A daemon to send system metrics to Cobalt.
Usage:
async::Loop loop(
&kAsyncLoopConfigAttachToCurrentThread
);
std::unique_ptr
<sys
::ComponentContext> context(
sys::ComponentContext::CreateAndServeOutgoingDirectory());
SystemMetricsDaemon daemon(loop.dispatcher(), context.get());
daemon.StartLogging();
loop.Run();
Public Members
static const char *const kInspecPlatformtNodeName
static const char *const kCPUNodeName
static const char *const kReadingCPUMax
static const char *const kReadingCPUMean
static const size_t kCPUArraySize
Public Methods
void SystemMetricsDaemon (async_dispatcher_t * dispatcher, sys::ComponentContext * context)
Constructor
|dispatcher|. This is used to schedule future work.
|context|. The Cobalt LoggerFactory interface is fetched from this context.
Defined at line 55 of file ../../src/cobalt/bin/system-metrics/system_metrics_daemon.cc
void StartLogging ()
Starts asynchronously logging all system metrics.
Defined at line 95 of file ../../src/cobalt/bin/system-metrics/system_metrics_daemon.cc
Friends
class SystemMetricsDaemonInitializationTest
class SystemMetricsDaemonTest