High performance C++ framework for concurrent servers
Public Member Functions | List of all members
seastar::metrics::description Class Reference

Detailed Description

Human-readable description of a metric/group.

Uses a separate class to deal with type resolution

Add this to metric creation:

_metrics->add_group("groupname", {
sm::make_gauge("metric_name", value, description("A documentation about the return value"))
impl::metric_definition_impl make_gauge(metric_name_type name, T &&val, description d=description(), std::vector< label_instance > labels={})
Gauge are a general purpose metric.
Definition: metrics.hh:443

#include <seastar/core/metrics.hh>

Public Member Functions

 description (sstring s=sstring())
const sstring & str () const

The documentation for this class was generated from the following file: