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

Registration of built-in metric collectors with the registry. More...

Include dependency graph for builtin_collectors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::monitoring
 

Functions

bool kcenon::monitoring::register_builtin_collectors ()
 Register all built-in collectors with the collector_registry.
 
std::vector< std::string > kcenon::monitoring::get_builtin_collector_names ()
 Get list of all built-in collector names.
 

Detailed Description

Registration of built-in metric collectors with the registry.

This file provides a single function to register all built-in collectors with the collector_registry. Call register_builtin_collectors() once at application startup to enable runtime plugin management.

Usage:

int main() {
auto* collector = registry.get_plugin("battery_collector");
}
Registration of built-in metric collectors with the registry.
static auto instance() -> collector_registry &
Get the singleton instance.
bool register_builtin_collectors()
Register all built-in collectors with the collector_registry.

Definition in file builtin_collectors.h.