diff options
author | Nayana Bidari <nybidari@google.com> | 2021-04-15 20:01:04 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-04-15 20:02:50 -0700 |
commit | 14b7d775c950070378ea799a0b6b7907f67a1f1e (patch) | |
tree | 7cfae25f149909f460fb6ea07bdf28b6fcaf4cd9 /pkg/metric/metric.proto | |
parent | 82dc881dba7399afa4268c5e3a70624db0b1e7ee (diff) |
Add field support to the sentry metrics.
Fields allow counter metrics to have multiple tabular values.
At most one field is supported at the moment.
PiperOrigin-RevId: 368767040
Diffstat (limited to 'pkg/metric/metric.proto')
-rw-r--r-- | pkg/metric/metric.proto | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/metric/metric.proto b/pkg/metric/metric.proto index 3cc89047d..53c8b4b50 100644 --- a/pkg/metric/metric.proto +++ b/pkg/metric/metric.proto @@ -48,6 +48,15 @@ message MetricMetadata { // units is the units of the metric value. Units units = 6; + + message Field { + string field_name = 1; + repeated string allowed_values = 2; + } + + // fields contains the metric fields. Currently a metric can have at most + // one field. + repeated Field fields = 7; } // MetricRegistration contains the metadata for all metrics that will be in @@ -66,6 +75,8 @@ message MetricValue { oneof value { uint64 uint64_value = 2; } + + repeated string field_values = 4; } // MetricUpdate contains new values for multiple distinct metrics. |