Files
nomad/website/content/docs/autoscaling/plugins/strategy/target-value.mdx
Luiz Aoqui 334de88582 docs: restructure autoscaling plugins menu (#10534)
* docs: restructure autoscaling plugins menu

* docs: add autoscaling threshold strategy (#10535)
2021-05-07 14:21:50 -04:00

39 lines
869 B
Plaintext

---
layout: docs
page_title: 'Autoscaling Plugins: Target Value'
description: The "target-value" strategy plugin tracks a target metric value.
---
# Target Value Strategy Plugin
The `target-value` strategy plugin will perform count calculations in order to
keep the value resulting from the APM query at or around a specified target.
## Agent Configuration Options
```hcl
strategy "target-value" {
driver = "target-value"
}
```
## Policy Configuration Options
```hcl
check "target-value-check" {
# ...
strategy "target-value" {
target = 20
threshold = 0.0001
}
# ...
}
```
- `target` `(float: <required>)` - Specifies the metric value the Autoscaler
should try to meet.
- `threshold` `(float: 0.01)` - Specifies how significant a change in the input
metric should be considered. Small threshold values can lead to output
fluctuation.