From cabfdb2f3773b670101da201ac5326a4228e1838 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 21 Feb 2024 14:55:54 +0100 Subject: [PATCH] proto: Add exemplars for native histograms This commit mirrors https://github.com/prometheus/client_model/pull/80 . Signed-off-by: beorn7 --- proto/openmetrics_data_model.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/openmetrics_data_model.proto b/proto/openmetrics_data_model.proto index f96a902..4c3c527 100644 --- a/proto/openmetrics_data_model.proto +++ b/proto/openmetrics_data_model.proto @@ -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,