Skip to content

Commit

Permalink
proto: Add exemplars for native histograms
Browse files Browse the repository at this point in the history
This commit mirrors
prometheus/client_model#80 .

Signed-off-by: beorn7 <beorn@grafana.com>
  • Loading branch information
beorn7 committed Feb 21, 2024
1 parent f8b5441 commit cabfdb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proto/openmetrics_data_model.proto
Expand Up @@ -198,6 +198,10 @@ message HistogramValue {
repeated sint64 positive_delta = 15; // Count delta of each bucket compared to previous one (or to zero for 1st bucket).
repeated double positive_count = 16; // Absolute count of each bucket.

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

// A BucketSpan defines a number of consecutive buckets in a native
// histogram with their offset. Logically, it would be more
// straightforward to include the bucket counts in the Span. However,
Expand Down

0 comments on commit cabfdb2

Please sign in to comment.