Skip to content

Commit

Permalink
Merge pull request #13449 from fatsheep9146/native-histogram-support-…
Browse files Browse the repository at this point in the history
…exemplar

scrape: Prometheus server support exemplar in native histogram
  • Loading branch information
beorn7 committed Jan 25, 2024
2 parents c3b8ef1 + 033c9b2 commit 0fe34f8
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 67 deletions.
200 changes: 133 additions & 67 deletions prompb/io/prometheus/client/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 prompb/io/prometheus/client/metrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,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;
}

message Bucket {
Expand Down

0 comments on commit 0fe34f8

Please sign in to comment.