diff --git a/docs/resources/app_autoscale.md b/docs/resources/app_autoscale.md index d912990..b91a65d 100644 --- a/docs/resources/app_autoscale.md +++ b/docs/resources/app_autoscale.md @@ -49,6 +49,7 @@ resource "tsuru_app_autoscale" "web" { - `cpu_average` (String) CPU average, for example: 20%, mean that we trigger autoscale when the average of CPU Usage of units is 20%. - `min_units` (Number) minimum number of units +- `prometheus` (Block List) List of Prometheus autoscale rules (see [below for nested schema](#nestedblock--prometheus)) - `schedule` (Block List) List of schedules that determine scheduled up/downscales (see [below for nested schema](#nestedblock--schedule)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) @@ -56,6 +57,24 @@ resource "tsuru_app_autoscale" "web" { - `id` (String) The ID of this resource. + +### Nested Schema for `prometheus` + +Required: + +- `name` (String) Name of the Prometheus autoscale rule +- `query` (String) Prometheus query to be used in the autoscale rule +- `threshold` (Number) Threshold value to trigger the autoscaler + +Optional: + +- `custom_address` (String) Custom Prometheus URL. If not specified, it will use the default Prometheus from the app's pool + +Read-Only: + +- `prometheus_address` (String) Custom Prometheus URL. If not specified, it will use the default Prometheus from the app's pool + + ### Nested Schema for `schedule`