Skip to content

Commit d56cd79

Browse files
authored
add exemplar to native histogram (#80)
Add exemplars to native histogram Signed-off-by: Ziqi Zhao <[email protected]>
1 parent f22bbab commit d56cd79

File tree

2 files changed

+104
-87
lines changed

2 files changed

+104
-87
lines changed

go/metrics.pb.go

Lines changed: 101 additions & 87 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ message Histogram {
107107
// histograms.
108108
repeated sint64 positive_delta = 13; // Count delta of each bucket compared to previous one (or to zero for 1st bucket).
109109
repeated double positive_count = 14; // Absolute count of each bucket.
110+
111+
// Only used for native histograms. These exemplars MUST have a timestamp.
112+
repeated Exemplar exemplars = 16;
110113
}
111114

112115
// A Bucket of a conventional histogram, each of which is treated as

0 commit comments

Comments
 (0)