#include <telemetry_aggregator.h>
Definition at line 44 of file telemetry_aggregator.h.
perf::TelemetryAggregator::~TelemetryAggregator |
( |
| ) |
|
|
virtual |
perf::TelemetryAggregator::TelemetryAggregator |
( |
Statistics * |
statistics, |
|
|
int |
send_rate_sec, |
|
|
MountPoint * |
mount_point, |
|
|
const std::string & |
fqrn |
|
) |
| |
|
inlineprotected |
Base constructor taking care of threading infrastructure. Must always be called in the constructor of the custom telemetry classes.
Definition at line 101 of file telemetry_aggregator.h.
perf::TelemetryAggregator::FRIEND_TEST |
( |
T_TelemetryAggregator |
, |
|
|
EmptyCounters |
|
|
) |
| |
|
private |
perf::TelemetryAggregator::FRIEND_TEST |
( |
T_TelemetryAggregator |
, |
|
|
FailCreate |
|
|
) |
| |
|
private |
perf::TelemetryAggregator::FRIEND_TEST |
( |
T_TelemetryAggregator |
, |
|
|
ExtraFields_Tags |
|
|
) |
| |
|
private |
perf::TelemetryAggregator::FRIEND_TEST |
( |
T_TelemetryAggregator |
, |
|
|
UpdateCounters_WithExtraFields_Tags |
|
|
) |
| |
|
private |
void * perf::TelemetryAggregator::MainTelemetry |
( |
void * |
data | ) |
|
|
staticprotected |
Main loop executed by the telemetry thread. Checks every x seconds if the telemetry thread should continue running. If yes, takes a snapshot of all statistic counters that are not 0 and calls PushMetrics()
PushMetrics() is defined by the custom telemetry classes and performs all operation on the statistic counters to send/store them.
Definition at line 116 of file telemetry_aggregator.cc.
Referenced by Spawn().
void perf::TelemetryAggregator::ManuallyUpdateSelectedCounters |
( |
| ) |
|
|
private |
virtual void perf::TelemetryAggregator::PushMetrics |
( |
| ) |
|
|
protectedpure virtual |
PushMetrics is called after the snapshot of the counters. It should perform all manipulations needed for the counters and the sending/storing of the counters.
Needs to be implemented in the custom telemetry class.
Implemented in perf::TelemetryAggregatorInflux.
Referenced by MainTelemetry().
void perf::TelemetryAggregator::Spawn |
( |
| ) |
|
std::map<std::string, int64_t> perf::TelemetryAggregator::counters_ |
|
protected |
std::string perf::TelemetryAggregator::fqrn_ |
|
protected |
bool perf::TelemetryAggregator::is_zombie_ |
|
protected |
MountPoint* perf::TelemetryAggregator::mount_point_ |
|
protected |
int perf::TelemetryAggregator::pipe_terminate_[2] |
|
protected |
const int perf::TelemetryAggregator::send_rate_sec_ |
|
protected |
Statistics* perf::TelemetryAggregator::statistics_ |
|
protected |
pthread_t perf::TelemetryAggregator::thread_telemetry_ |
|
protected |
uint64_t perf::TelemetryAggregator::timestamp_ |
|
protected |
The documentation for this class was generated from the following files: