C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Classes | Functions
caf::net::prometheus Namespace Reference

Contains a scraper for exposing metrics from an actor system to Prometheus. More...

Classes

class  scrape_state
 State for scraping Metrics data. More...
 

Functions

auto scraper (telemetry::metric_registry *registry, timespan proc_import_interval=std::chrono::seconds{1})
 Creates a scraper for the given actor system.
 
auto scraper (actor_system &sys, timespan proc_import_interval=std::chrono::seconds{1})
 Creates a scraper for the given actor system.
 

Detailed Description

Contains a scraper for exposing metrics from an actor system to Prometheus.

Function Documentation

◆ scraper() [1/2]

auto caf::net::prometheus::scraper ( actor_system sys,
timespan  proc_import_interval = std::chrono::seconds{1} 
)

Creates a scraper for the given actor system.

Parameters
sysThe actor system for collecting the metrics from.
proc_import_intervalMinimum time between importing process metrics.
Returns
a function object suitable for passing it to an HTTP route.

◆ scraper() [2/2]

auto caf::net::prometheus::scraper ( telemetry::metric_registry registry,
timespan  proc_import_interval = std::chrono::seconds{1} 
)

Creates a scraper for the given actor system.

Parameters
registryThe registry for collecting the metrics from.
proc_import_intervalMinimum time between importing process metrics.
Returns
a function object suitable for passing it to an HTTP route.