»Nomad Task Group Target

The Nomad task group target indicates the scalable resource is a Nomad job running on a Nomad cluster.

»Agent Configuration Options

The Nomad target is automatically launched by the Nomad Autoscaler and so the following setup is optional.

target "nomad" {
  driver = "nomad"
}
target "nomad" {  driver = "nomad"}

»Policy Configuration Options

If using the Nomad job specification scaling stanza to configure the scaling policy, the following section can be omitted as Nomad will populate them on job submission.

check "example-check" {
  ...
  target "nomad" {
    Namespace = "default"
    Job       = "example"
    Group     = "cache"
  }
  ...
check "example-check" {  ...  target "nomad" {    Namespace = "default"    Job       = "example"    Group     = "cache"  }  ...
  • Namespace (string: "") - The namespace in which the job resides as defined by the namespace parameter within the job specification.

  • Job (string: "") - The job identifier which contains the task group to scale as defined within the job specification job stanza.

  • Group (string: "") - The name of the task group to scale as defined in the job specification group stanza.