plugin/nomad: Support service filtering (#7724)

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
This commit is contained in:
Olli Janatuinen
2025-11-25 20:05:14 +01:00
committed by GitHub
parent 3362885b56
commit bdc03ed540
4 changed files with 25 additions and 10 deletions

View File

@@ -80,6 +80,7 @@ With only the plugin specified, the *nomad* plugin will default to `service.noma
~~~ txt
nomad [ZONE] {
address URL
filter FILTER
token TOKEN
ttl DURATION
}
@@ -87,6 +88,8 @@ nomad [ZONE] {
* `address` The address where a Nomad agent (server) is available. **URL** defaults to `http://127.0.0.1:4646`.
* `filter` allows you to filter Nomad services. **FILTER** defaults to `""`. Uses [filtering](https://developer.hashicorp.com/nomad/api-docs#filtering) syntax.
* `token` The SecretID of an ACL token to use to authenticate API requests with if the Nomad cluster has ACL enabled. **TOKEN** defaults to `""`.
* `ttl` allows you to set a custom TTL for responses. **DURATION** defaults to `30 seconds`. The minimum TTL allowed is `0` seconds, and the maximum is capped at `3600` seconds. Setting TTL to 0 will prevent records from being cached. The unit for the value is seconds.