You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/metrics_rollup_rules.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ The following attributes are exported:
76
76
*`name` - The human-readable name of the rollup rule.
77
77
*`metric_name` - The name of the metric (if rule is metric name-based).
78
78
*`metric_type` - The type of the metric (GAUGE, COUNTER, DELTA_COUNTER, CUMULATIVE_COUNTER, or MEASUREMENT).
79
-
*`rollup_function` - The aggregation function used for rolling up the metric. Always "SUM" for COUNTER, DELTA_COUNTER, and CUMULATIVE_COUNTER types.
79
+
*`rollup_function` - The aggregation function used for rolling up the metric. Always "SUM" for COUNTER, DELTA_COUNTER, and CUMULATIVE_COUNTER types. Can be any valid aggregation function for GAUGE and MEASUREMENT types.
80
80
*`labels_elimination_method` - The method for eliminating labels (EXCLUDE_BY or GROUP_BY).
81
81
*`labels` - The list of label names being eliminated from the metric.
82
82
*`new_metric_name_template` - The template for generating new metric names.
@@ -66,7 +66,7 @@ The following arguments are supported:
66
66
*`account_id` - (Required) The metrics account ID for the metrics rollup rule.
67
67
*`metric_name` - (Optional) The name of the metric for which to create the rollup rule. Either `metric_name` or `filter` must be specified, but not both.
68
68
*`metric_type` - (Required) The type of the metric. Valid values are `GAUGE`, `COUNTER`, `DELTA_COUNTER`, `CUMULATIVE_COUNTER`, and `MEASUREMENT`.
69
-
*`rollup_function` - The aggregation function to use for rolling up the metric. Required for all metric types. For `COUNTER`, `DELTA_COUNTER`, and `CUMULATIVE_COUNTER` types, must be `SUM`. For `MEASUREMENT`metric type, only `SUM`, `MIN`, `MAX`, `COUNT`, `SUMSQ`, `MEAN`, and `LAST` are allowed. For `GAUGE`type, any valid aggregation function is allowed. Valid values include `SUM`, `MIN`, `MAX`, `COUNT`, `LAST`, `MEAN`, `MEDIAN`, `STDEV`, `SUMSQ`, and percentiles (`P10`, `P20`, `P25`, `P30`, `P40`, `P50`, `P60`, `P70`, `P75`, `P80`, `P90`, `P95`, `P99`, `P999`, `P9999`).
69
+
*`rollup_function` - The aggregation function to use for rolling up the metric. Required for all metric types. For `COUNTER`, `DELTA_COUNTER`, and `CUMULATIVE_COUNTER` types, must be `SUM`. For `MEASUREMENT` and `GAUGE`metric types, any valid aggregation function is allowed. Valid values include `SUM`, `MIN`, `MAX`, `COUNT`, `LAST`, `MEAN`, `MEDIAN`, `STDEV`, `SUMSQ`, and percentiles (`P10`, `P20`, `P25`, `P30`, `P40`, `P50`, `P60`, `P70`, `P75`, `P80`, `P90`, `P95`, `P99`, `P999`, `P9999`).
70
70
*`labels_elimination_method` - (Required) The method for eliminating labels. Valid values are `EXCLUDE_BY` and `GROUP_BY`.
71
71
*`labels` - (Required) A list of label names to be eliminated from the metric.
72
72
*`name` - (Optional) A human-readable name for the rollup rule.
0 commit comments