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

Detailed Description

Metrics are collected in groups that belongs to some logical entity. For example, different measurements of the cpu, will belong to group "cpu".

Name is the metric name like used_objects or used_bytes

Inherit type allows customizing one of the basic types (gauge, counter, derive).

Instance_id is used to differentiate multiple instance of the metrics. In the seastar environment it is typical to have a metric per shard.

#include <seastar/core/metrics_api.hh>

Public Member Functions

 metric_id (group_name_type group, metric_name_type name, labels_type labels={})
 
 metric_id (metric_id &&)=default
 
 metric_id (const metric_id &)=default
 
metric_idoperator= (metric_id &&)=default
 
metric_idoperator= (const metric_id &)=default
 
const group_name_typegroup_name () const
 
void group_name (const group_name_type &name)
 
const instance_id_typeinstance_id () const
 
const metric_name_typename () const
 
const labels_type & labels () const
 
labels_type & labels ()
 
sstring full_name () const
 
bool operator< (const metric_id &) const
 
bool operator== (const metric_id &) const
 

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