NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
The MonitoringAgent which is responsible for collecting metrics on a local level. More...
#include <MonitoringAgent.hpp>
Public Member Functions | |
MonitoringAgent () | |
MonitoringAgent (bool enabled) | |
MonitoringAgent (MonitoringPlanPtr monitoringPlan, MonitoringCatalogPtr catalog, bool enabled) | |
const std::vector< MetricPtr > | getMetricsFromPlan () const |
Collect the metrics and store them in to the given output. The collected metrics depend on the monitoring plan. If monitoring is disabled an empty vector will be returned. More... | |
nlohmann::json | getMetricsAsJson () |
Returns all metrics defined by the plan as a unified JSON. More... | |
bool | isEnabled () const |
Checks if monitoring is enabled. More... | |
MonitoringPlanPtr | getMonitoringPlan () const |
Getter for the MonitoringPlan. More... | |
void | setMonitoringPlan (MonitoringPlanPtr monitoringPlan) |
set the monitoring plan More... | |
RegistrationMetrics | getRegistrationMetrics () |
Return the metrics required for node registration. More... | |
bool | addMonitoringStreams (const Configurations::WorkerConfigurationPtr workerConfig) |
Adds the monitoring streams based on the monitoring plan to the worker config. More... | |
void | setNodeId (WorkerId nodeId) |
Set the node ID of the topology node. More... | |
Static Public Member Functions | |
static MonitoringAgentPtr | create () |
static MonitoringAgentPtr | create (bool enabled) |
static MonitoringAgentPtr | create (MonitoringPlanPtr monitoringPlan, MonitoringCatalogPtr catalog, bool enabled) |
The MonitoringAgent which is responsible for collecting metrics on a local level.
NES::Monitoring::MonitoringAgent::MonitoringAgent | ( | ) |
|
explicit |
NES::Monitoring::MonitoringAgent::MonitoringAgent | ( | MonitoringPlanPtr | monitoringPlan, |
MonitoringCatalogPtr | catalog, | ||
bool | enabled | ||
) |
References NES_DEBUG.
bool NES::Monitoring::MonitoringAgent::addMonitoringStreams | ( | const Configurations::WorkerConfigurationPtr | workerConfig | ) |
Adds the monitoring streams based on the monitoring plan to the worker config.
workerConfig |
References NES::Monitoring::MetricUtils::createCollectorTypeFromMetricType(), magic_enum::enum_name(), NES_INFO, NES_WARNING, and NES::TestUtils::sourceType().
|
static |
|
static |
|
static |
nlohmann::json NES::Monitoring::MonitoringAgent::getMetricsAsJson | ( | ) |
Returns all metrics defined by the plan as a unified JSON.
References NES::Monitoring::asJson(), magic_enum::enum_name(), NES_INFO, and type.
const std::vector< MetricPtr > NES::Monitoring::MonitoringAgent::getMetricsFromPlan | ( | ) | const |
Collect the metrics and store them in to the given output. The collected metrics depend on the monitoring plan. If monitoring is disabled an empty vector will be returned.
References NES_DEBUG, NES_WARNING, and type.
MonitoringPlanPtr NES::Monitoring::MonitoringAgent::getMonitoringPlan | ( | ) | const |
Getter for the MonitoringPlan.
RegistrationMetrics NES::Monitoring::MonitoringAgent::getRegistrationMetrics | ( | ) |
Return the metrics required for node registration.
References NES::Monitoring::SystemResourcesReaderFactory::getSystemResourcesReader(), and NES_WARNING.
bool NES::Monitoring::MonitoringAgent::isEnabled | ( | ) | const |
Checks if monitoring is enabled.
void NES::Monitoring::MonitoringAgent::setMonitoringPlan | ( | MonitoringPlanPtr | monitoringPlan | ) |
set the monitoring plan
monitoringPlan |
void NES::Monitoring::MonitoringAgent::setNodeId | ( | WorkerId | nodeId | ) |