Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 9a6e568

Browse files
authored
Metric: Move label keys to metric descriptor. (#55)
1 parent c5d48ac commit 9a6e568

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

opencensus/proto/stats/metrics/metrics.proto

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,19 @@ message MetricDescriptor {
6969
Type type = 4;
7070

7171
// TODO: Consider to add LabelInfo{key, description} if needed.
72+
// The label keys associated with the metric descriptor.
73+
repeated string label_keys = 5;
7274
}
7375

7476
// A collection of data points that describes the time-varying values
7577
// of a metric.
7678
message TimeSeries {
79+
// TODO: Wrap values to distinguish between empty-string and unset.
7780
// TODO: Add restrictions for characters that can be used for keys and values.
7881
// The set of label values that uniquely identify this timeseries. Apply to all
79-
// points.
80-
map<string, string> label = 1;
82+
// points. The order of label values must match that of label keys in the
83+
// metric descriptor.
84+
repeated string label_values = 1;
8185

8286
// The data points of this timeseries. Point type MUST match the MetricDescriptor.type, so for
8387
// a CUMULATIVE type only cumulative_points are present and for a GAUGE type only gauge_points

0 commit comments

Comments
 (0)