Skip to content

Commit 003f160

Browse files
committed
Add unit field to MetricFamily proto message
Signed-off-by: Arianna Vespri <[email protected]>
1 parent 62658f5 commit 003f160

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

go/metrics.pb.go

Lines changed: 23 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

io/prometheus/client/metrics.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,5 @@ message MetricFamily {
150150
optional string help = 2;
151151
optional MetricType type = 3;
152152
repeated Metric metric = 4;
153+
optional string unit = 5;
153154
}

0 commit comments

Comments
 (0)