Skip to content

Commit

Permalink
[coordinator] Fix protobuf tag collision with Prometheus (#4256)
Browse files Browse the repository at this point in the history
  • Loading branch information
linasm authored Oct 11, 2023
1 parent 1dd768b commit 9142ce5
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 169 deletions.
239 changes: 73 additions & 166 deletions src/query/generated/proto/prompb/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/query/generated/proto/prompb/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ message Sample {
message TimeSeries {
repeated Label labels = 1 [(gogoproto.nullable) = false];
repeated Sample samples = 2 [(gogoproto.nullable) = false];
MetricType type = 3;
string unit = 4;
string help = 5;

// NB: These are custom fields that M3 uses. They start at 101 so that they
// should never clash with prometheus fields.
M3Type m3_type = 101;
Source source = 102;
MetricType type = 1001;
}

message Label {
Expand Down

0 comments on commit 9142ce5

Please sign in to comment.