Handler that returns statistics data.
Additionally to the common handler options the component has 'common-labels' option that should be a map of label name to label value. Items of the map are added to each metric.
Static configuration example:
handler-server-monitor:
path: /*
method: GET
task_processor: monitor-task-processor
common-labels:
application: sample application
zone: some
Scheme
Accepts a path arguments 'format', 'labels', 'path' and 'prefix':
format - "prometheus", "prometheus-untyped", "graphite", "json", "solomon", "pretty" and internal (default) format is supported. For more info see the documentation for utils::statistics::ToPrometheusFormat , utils::statistics::ToPrometheusFormatUntyped , utils::statistics::ToGraphiteFormat , utils::statistics::ToJsonFormat , utils::statistics::ToSolomonFormat , utils::statistics::ToPrettyFormat .
labels - filter out metrics without the provided labels. Parameter should be a JSON dictionary in the form '{"label1":"value1", "label2":"value2"}'.
path - return metrics on for the following path
prefix - return metrics whose path starts from the specified prefix.
Examples samples/tcp_full_duplex_service/tcp_full_duplex_service.cpp .
Definition at line 44 of file server_monitor.hpp .