Seastar
High performance C++ framework for concurrent servers
|
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, internalized_labels_ref labels) | |
metric_id (metric_id &&)=default | |
metric_id (const metric_id &)=default | |
metric_id & | operator= (metric_id &&)=default |
metric_id & | operator= (const metric_id &)=default |
const group_name_type & | group_name () const |
void | group_name (const group_name_type &name) |
const instance_id_type & | instance_id () const |
const metric_name_type & | name () const |
const labels_type & | labels () const |
internalized_labels_ref | internalized_labels () const |
void | update_labels (internalized_labels_ref labels) |
sstring | full_name () const |
bool | operator< (const metric_id &) const |
bool | operator== (const metric_id &) const |