github.com/dkerwin/nomad@v0.3.3-0.20160525181927-74554135514b/website/source/docs/commands/agent-info.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: agent-info" 4 sidebar_current: "docs-commands-agent-info" 5 description: > 6 Display information and status of a running agent. 7 --- 8 9 # Command: agent-info 10 11 The `agent-info` command dumps metrics and status information of a running 12 agent. The information displayed pertains to the specific agent the CLI 13 is connected to. This is useful for troubleshooting and performance monitoring. 14 15 ## Usage 16 17 ``` 18 nomad agent-info [options] 19 ``` 20 21 ## General Options 22 23 <%= general_options_usage %> 24 25 ## Output 26 27 Depending on the agent queried, information from different subsystems is 28 returned. These subsystems are described below: 29 30 * client - Status of the local Nomad client 31 * nomad - Status of the local Nomad server 32 * serf - Gossip protocol metrics and information 33 * raft - Status information about the Raft consensus protocol 34 * runtime - Various metrics from the runtime environment 35 36 ## Examples 37 38 ``` 39 $ nomad agent-info 40 raft 41 commit_index = 0 42 fsm_pending = 0 43 last_contact = never 44 last_snapshot_term = 0 45 state = Follower 46 term = 0 47 applied_index = 0 48 last_log_index = 0 49 last_log_term = 0 50 last_snapshot_index = 0 51 num_peers = 0 52 runtime 53 cpu_count = 4 54 goroutines = 43 55 kernel.name = darwin 56 max_procs = 4 57 version = go1.5 58 arch = amd64 59 serf 60 intent_queue = 0 61 member_time = 1 62 query_queue = 0 63 event_time = 1 64 event_queue = 0 65 failed = 0 66 left = 0 67 members = 1 68 query_time = 1 69 encrypted = false 70 client 71 heartbeat_ttl = 0 72 known_servers = 0 73 last_heartbeat = 9223372036854775807 74 num_allocations = 0 75 nomad 76 bootstrap = false 77 known_regions = 1 78 leader = false 79 server = true 80 ```