@@ -30,17 +30,6 @@ option objc_class_prefix = "GAPI";
3030// deleting or altering it stops data collection and makes the metric type's
3131// existing data unusable.
3232//
33- // The following are specific rules for service defined Monitoring metric
34- // descriptors:
35- //
36- // * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
37- // `launch_stage` fields are all required. The `unit` field must be specified
38- // if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
39- // * Maximum of default 500 metric descriptors per service is allowed.
40- // * Maximum of default 10 labels per metric descriptor is allowed.
41- //
42- // The default maximum limit can be overridden. Please follow
43- // https://cloud.google.com/monitoring/quotas
4433message MetricDescriptor {
4534 // Additional annotations that can be used to guide the usage of a metric.
4635 message MetricDescriptorMetadata {
@@ -60,6 +49,8 @@ message MetricDescriptor {
6049 }
6150
6251 // The kind of measurement. It describes how the data is reported.
52+ // For information on setting the start time and end time based on
53+ // the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
6354 enum MetricKind {
6455 // Do not use this default value.
6556 METRIC_KIND_UNSPECIFIED = 0 ;
@@ -108,40 +99,17 @@ message MetricDescriptor {
10899 string name = 1 ;
109100
110101 // The metric type, including its DNS name prefix. The type is not
111- // URL-encoded.
112- //
113- // All service defined metrics must be prefixed with the service name, in the
114- // format of `{service name}/{relative metric name}`, such as
115- // `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric
116- // name must follow:
117- //
118- // * Only upper and lower-case letters, digits, '/' and underscores '_' are
119- // allowed.
120- // * The maximum number of characters allowed for the relative_metric_name is
121- // 100.
122- //
123- // All user-defined metric types have the DNS name
124- // `custom.googleapis.com`, `external.googleapis.com`, or
125- // `logging.googleapis.com/user/`.
126- //
127- // Metric types should use a natural hierarchical grouping. For example:
102+ // URL-encoded. All user-defined metric types have the DNS name
103+ // `custom.googleapis.com` or `external.googleapis.com`. Metric types should
104+ // use a natural hierarchical grouping. For example:
128105 //
129106 // "custom.googleapis.com/invoice/paid/amount"
130107 // "external.googleapis.com/prometheus/up"
131108 // "appengine.googleapis.com/http/server/response_latencies"
132109 string type = 8 ;
133110
134111 // The set of labels that can be used to describe a specific
135- // instance of this metric type.
136- //
137- // The label key name must follow:
138- //
139- // * Only upper and lower-case letters, digits and underscores (_) are
140- // allowed.
141- // * Label name must start with a letter or digit.
142- // * The maximum length of a label name is 100 characters.
143- //
144- // For example, the
112+ // instance of this metric type. For example, the
145113 // `appengine.googleapis.com/http/server/response_latencies` metric
146114 // type has a label for the HTTP response code, `response_code`, so
147115 // you can look at latencies for successful responses or just
0 commit comments