Metric.msg¶
Overview¶
Metric.msg represents a single metric value, optionally labeled, that can be one of three types: counter, gauge, or histogram. It mirrors the metric model used internally by Cartographer’s metrics infrastructure.
Constants¶
Constant |
Value |
Meaning |
|---|---|---|
|
|
A monotonically increasing counter. |
|
|
A value that can increase and decrease. |
|
|
A distribution of values across buckets. |
Fields¶
Field |
Type |
Description |
|---|---|---|
|
|
One of the |
|
|
Key/value labels attached to this metric. |
|
|
The metric value, valid for |
|
|
The per-bucket counts, valid for |
Usage¶
For counters and gauges, populate
valueand leavecounts_by_bucketempty.For histograms, populate
counts_by_bucket;valueis unused.Metrics are grouped into families via
MetricFamily.msg.