Skip to content

Commit

Permalink
add exemplar to native histogram (#80)
Browse files Browse the repository at this point in the history
Add exemplars to native histogram

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 committed Jan 23, 2024
1 parent f22bbab commit d56cd79
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 87 deletions.
188 changes: 101 additions & 87 deletions go/metrics.pb.go

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

3 changes: 3 additions & 0 deletions io/prometheus/client/metrics.proto
Expand Up @@ -107,6 +107,9 @@ message Histogram {
// histograms.
repeated sint64 positive_delta = 13; // Count delta of each bucket compared to previous one (or to zero for 1st bucket).
repeated double positive_count = 14; // Absolute count of each bucket.

// Only used for native histograms. These exemplars MUST have a timestamp.
repeated Exemplar exemplars = 16;
}

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

0 comments on commit d56cd79

Please sign in to comment.