Backend that sends metrics to InfluxDB time-series databse.
More...
#include <InfluxDB.h>
Backend that sends metrics to InfluxDB time-series databse.
Metrics are converted into Influx Line protocol and then sent via one of available transports
Constuctor
- Parameters
-
transport | Any available transport (udp, unix, kafka) |
void o2::monitoring::backends::InfluxDB::addGlobalTag |
( |
std::string_view |
name, |
|
|
std::string_view |
value |
|
) |
| |
|
overridevirtual |
unsigned long o2::monitoring::backends::InfluxDB::convertTimestamp |
( |
const std::chrono::time_point< std::chrono::system_clock > & |
timestamp | ) |
|
|
inline |
Convert timestamp to unsigned long as required by InfluxDB
- Parameters
-
timestamp | chrono time_point timestamp |
- Returns
- timestamp in nanoseconds
void o2::monitoring::backends::InfluxDB::send |
( |
const Metric & |
metric | ) |
|
|
overridevirtual |
void o2::monitoring::backends::InfluxDB::send |
( |
std::vector< Metric > && |
metrics | ) |
|
|
overridevirtual |
Sends multiple metrics not related to each other @param metrics vector of metrics
Implements o2::monitoring::Backend.
std::string o2::monitoring::backends::InfluxDB::toInfluxLineProtocol |
( |
const Metric & |
metric | ) |
|
Converts metric to Influx Line Protocol format
- Parameters
-
The documentation for this class was generated from the following files:
- /home/travis/build/AliceO2Group/Monitoring/src/Backends/InfluxDB.h
- /home/travis/build/AliceO2Group/Monitoring/src/Backends/InfluxDB.cxx