Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
plugin_metric_collector.h File Reference

Plugin interface for metric collectors with a dynamic data source. More...

#include <string>
#include <unordered_map>
#include <vector>
#include "../interfaces/metric_types_adapter.h"
Include dependency graph for plugin_metric_collector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::monitoring::metric_collector_plugin
 

Namespaces

namespace  kcenon
 
namespace  kcenon::monitoring
 

Detailed Description

Plugin interface for metric collectors with a dynamic data source.

This header defines metric_collector_plugin, the pure-virtual interface that concrete metric collector plugins (for example system_resource_collector, container_plugin and hardware_plugin) implement. The interface is header-only and fully compiled into every consumer through its vtable, so it is safe to integrate.

Note
A previous revision of this header also declared a plugin_metric_collector manager class and a plugin_factory whose member functions were never defined in src/, never tested, and never registered in builtin_collectors.h. Those test-only sketches were removed in issue #690; only the production metric_collector_plugin interface remains.
See also
metric_collector_plugin

Definition in file plugin_metric_collector.h.