github.com/google/cloudprober@v0.11.3/metrics/payload/proto/config.proto (about) 1 syntax = "proto2"; 2 3 package cloudprober.metrics.payload; 4 5 import "github.com/google/cloudprober/metrics/proto/dist.proto"; 6 7 option go_package = "github.com/google/cloudprober/metrics/payload/proto"; 8 9 message OutputMetricsOptions { 10 // MetricsKind specifies whether to treat output metrics as GAUGE or 11 // CUMULATIVE. If left unspecified, metrics from ONCE mode probes are treated 12 // as GAUGE and metrics from SERVER mode probes are treated as CUMULATIVE. 13 enum MetricsKind { 14 UNDEFINED = 0; 15 GAUGE = 1; 16 CUMULATIVE = 2; 17 } 18 optional MetricsKind metrics_kind = 1; 19 20 // Additional labels (comma-separated) to attach to the output metrics, e.g. 21 // "region=us-east1,zone=us-east1-d". ptype="external" and probe="<probeName>" 22 // are attached automatically. 23 optional string additional_labels = 2; 24 25 // Whether to aggregate metrics in Cloudprober. If enabled, Cloudprober 26 // aggregates the metrics returned by the external probe process -- external 27 // probe process should return metrics only since the last probe run. 28 // Note that this option is mutually exclusive with GAUGE metrics and 29 // cloudprober will fail during initialization if both options are enabled. 30 optional bool aggregate_in_cloudprober = 3 [default = false]; 31 32 // Metrics that should be treated as distributions. These metrics are exported 33 // by the external probe program as comma-separated list of values, for 34 // example: "op_latency 4.7,5.6,5.9,6.1,4.9". To be able to build distribution 35 // from these values, these metrics should be pre-configured in external 36 // probe: 37 // dist_metric { 38 // key: "op_latency" 39 // value { 40 // explicit_buckets: "1,2,4,8,16,32,64,128,256" 41 // } 42 // } 43 map<string, metrics.Dist> dist_metric = 4; 44 }