Skip to content

Commit 41c2e63

Browse files
authored
Merge pull request #160383 from cockroachdb/blathers/backport-release-26.1-159840
release-26.1: pkg/ts,util: make metric visibility proto field optional
2 parents 697c33f + 3eb8706 commit 41c2e63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/ts/catalog/chart_catalog.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ message ChartMetric {
9191
// exportedName is the name of metrics as seen by external scrapers.
9292
required string exportedName = 6 [(gogoproto.nullable) = false];
9393
// visibility indicates the intended audience for this metric (INTERNAL, SUPPORT, or ESSENTIAL).
94-
required string visibility = 7 [(gogoproto.nullable) = false];
94+
optional string visibility = 7 [(gogoproto.nullable) = false];
9595
// howToUse is the usage instructions for the metric.
9696
optional string howToUse = 8 [(gogoproto.nullable) = false];
9797
// labeledName is the name of the metric with its labels, formatted as name{label1: value1, ...}.

pkg/util/metric/metric.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ message Metadata {
128128

129129
// visibility defines the intended audience and usage level for this metric.
130130
// See MetricVisibility for details on each visibility level.
131-
required MetricVisibility visibility = 10 [(gogoproto.nullable) = false];
131+
optional MetricVisibility visibility = 10 [(gogoproto.nullable) = false];
132132
// category is the dashboard category of this metric. This is
133133
// required if visibility is ESSENTIAL.
134134
required Category category = 11 [(gogoproto.nullable) = false];

0 commit comments

Comments
 (0)