github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/scaling/policy-info.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: scaling policy info' 4 description: | 5 Display an individual Nomad scaling policy. 6 --- 7 8 # Command: scaling policy info 9 10 Info is used to return detailed information on the specified scaling policy. 11 12 ## Usage 13 14 ```plaintext 15 nomad scaling policy info [options] <policy_id> 16 ``` 17 18 If ACLs are enabled, this command requires a token with the `read-job` and 19 `list-jobs` capabilities for the policy's namespace. 20 21 ## General Options 22 23 @include 'general_options.mdx' 24 25 ## Policy Info Options 26 27 - `-json` : Output the scaling policy in its JSON format. 28 - `-t` : Format and display the scaling policy using a Go template. 29 30 ## Examples 31 32 Inspect an individual scaling policy: 33 34 ```shell-session 35 $ nomad scaling policy info 31a53813-24df-b2ad-77dc-1b4bad4e7dca 36 37 ID = 31a53813-24df-b2ad-77dc-1b4bad4e7dca 38 Enabled = true 39 Target = Namespace:default,Job:webapp,Group:demo 40 Min = 1 41 Max = 20 42 43 Policy: 44 { 45 "check": [ 46 { 47 "avg_sessions": [ 48 { 49 "query": "scalar(sum(traefik_entrypoint_open_connections{entrypoint=\"horizontal-webapp\"}))", 50 "source": "prometheus", 51 "strategy": [ 52 { 53 "target-value": [ 54 { 55 "target": 10.0 56 } 57 ] 58 } 59 ] 60 } 61 ] 62 } 63 ], 64 "cooldown": "1m", 65 "evaluation_interval": "30s" 66 } 67 ```