From a74b002d33b4471aff7288afdb41393f6ff02ca1 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 19 Sep 2018 12:21:42 -0700 Subject: [PATCH] Add gauge distribution. (#117) --- src/opencensus/proto/metrics/v1/metrics.proto | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/opencensus/proto/metrics/v1/metrics.proto b/src/opencensus/proto/metrics/v1/metrics.proto index 86d5208..d7f7f22 100644 --- a/src/opencensus/proto/metrics/v1/metrics.proto +++ b/src/opencensus/proto/metrics/v1/metrics.proto @@ -81,17 +81,22 @@ message MetricDescriptor { // Floating point gauge. The value can go both up and down. GAUGE_DOUBLE = 2; + // Distribution gauge measurement. The count can go both up and down. + // Used in scenarios like a snapshot of time the current items in a queue + // have spent there. + GAUGE_DISTRIBUTION = 3; + // Integer cumulative measurement. The value can only go up, if resets then // the start_time should also be reset. - CUMULATIVE_INT64 = 3; + CUMULATIVE_INT64 = 4; // Floating point cumulative measurement. The value can only go up, if // resets then the start_time should also be reset. - CUMULATIVE_DOUBLE = 4; + CUMULATIVE_DOUBLE = 5; // Distribution cumulative measurement. The count can only go up, if resets // then the start_time should also be reset. - CUMULATIVE_DISTRIBUTION = 5; + CUMULATIVE_DISTRIBUTION = 6; // Some frameworks implemented Histograms as a summary of observations // (usually things like request durations and response sizes). While it