---
layout: docs
page_title: 'Autoscaling Plugins: Nomad'
description: The "nomad-target" target plugin scales a task group count.
---

# 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.

```hcl
target "nomad" {
  driver = "nomad-target"
}
```

## Policy Configuration Options

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

```hcl
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][nomad_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` block][nomad_job_block].

- `Group` `(string: "")` - The name of the task group to scale as defined in the
  job specification [`group` block][nomad_group_block].

[nomad_job_block]: /nomad/docs/job-specification/job#job-block
[nomad_group_block]: /nomad/docs/job-specification/group#group-block
[nomad_namespace_parameter]: /nomad/docs/job-specification/job#namespace
[nomad_scaling_block]: /nomad/docs/job-specification/scaling
