C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::telemetry::importer::process Class Reference

Imports CPU and memory metrics for the current process. More...

#include <process.hpp>

Public Member Functions

 process (metric_registry &reg)
 
void update ()
 Updates process metrics.
 

Static Public Member Functions

static bool platform_supported () noexcept
 Returns whether the scraper supports the host platform.
 

Detailed Description

Imports CPU and memory metrics for the current process.

On supported platforms, this importer adds the metrics process.resident_memory (resident memory size), process.virtual_memory (virtual memory size) and process.cpu (total user and system CPU time spent).

Note
CAF adds this importer automatically when configuring export to Prometheus via HTTP.

Member Function Documentation

◆ update()

void caf::telemetry::importer::process::update ( )

Updates process metrics.

Note
has no effect if platform_supported() returns false.

The documentation for this class was generated from the following files: