github.com/m3db/m3@v1.5.0/src/dbnode/generated/proto/annotation/annotation.proto (about) 1 syntax = "proto3"; 2 3 package annotation; 4 5 message Payload { 6 SourceFormat source_format = 3; 7 8 // Used when source_format == OPEN_METRICS 9 OpenMetricsFamilyType open_metrics_family_type = 1; 10 bool open_metrics_handle_value_resets = 2; 11 12 // Used when source_format == GRAPHITE 13 GraphiteType graphite_type = 4; 14 } 15 16 enum SourceFormat { 17 // OPEN_METRICS also includes Prometheus data. 18 // Using 0 for OPEN_METRICS because only Prometheus types were being stored before. 19 OPEN_METRICS = 0; 20 21 // Graphite/statsd. 22 GRAPHITE = 1; 23 } 24 25 enum OpenMetricsFamilyType { 26 UNKNOWN = 0; 27 COUNTER = 1; 28 GAUGE = 2; 29 HISTOGRAM = 3; 30 GAUGE_HISTOGRAM = 4; 31 SUMMARY = 5; 32 INFO = 6; 33 STATESET = 7; 34 } 35 36 enum GraphiteType { 37 GRAPHITE_UNKNOWN = 0; 38 GRAPHITE_COUNTER = 1; 39 GRAPHITE_GAUGE = 2; 40 GRAPHITE_TIMER = 3; 41 }