Skip to content

Instantly share code, notes, and snippets.

@udomsak
Created February 15, 2017 05:23
Show Gist options
  • Save udomsak/d137bf88c341699b19db6748a3285773 to your computer and use it in GitHub Desktop.
Save udomsak/d137bf88c341699b19db6748a3285773 to your computer and use it in GitHub Desktop.
nomad clinet /v1/agent/self ( HTTP port 4646 )
{
"config": {
"Addresses": {
"HTTP": "10.0.2.15",
"RPC": "10.0.2.15",
"Serf": "10.0.2.15"
},
"AdvertiseAddrs": {
"HTTP": "10.0.2.15:4646",
"RPC": "10.0.2.15:4647",
"Serf": ""
},
"Atlas": {
"Endpoint": "",
"Infrastructure": "",
"Join": false
},
"BindAddr": "10.0.2.15",
"Client": {
"AllocDir": "",
"ChrootEnv": {
},
"ClientMaxPort": 14512,
"ClientMinPort": 14000,
"Enabled": true,
"GCDiskUsageThreshold": 80,
"GCInodeUsageThreshold": 70,
"GCInterval": 60000000000,
"MaxKillTimeout": "30s",
"Meta": {
},
"NetworkInterface": "",
"NetworkSpeed": 0,
"NodeClass": "",
"Options": {
},
"Reserved": {
"CPU": 0,
"DiskMB": 0,
"IOPS": 0,
"MemoryMB": 0,
"ParsedReservedPorts": null,
"ReservedPorts": ""
},
"Servers": [
"10.226.1.1:4647"
],
"StateDir": ""
},
"Consul": {
"Addr": "",
"Auth": "",
"AutoAdvertise": true,
"CAFile": "",
"CertFile": "",
"ChecksUseAdvertise": false,
"ClientAutoJoin": true,
"ClientServiceName": "nomad-client",
"EnableSSL": false,
"KeyFile": "",
"ServerAutoJoin": true,
"ServerServiceName": "nomad",
"Timeout": 5000000000,
"Token": "",
"VerifySSL": false
},
"DataDir": "\/data",
"Datacenter": "dc1",
"DevMode": false,
"DisableAnonymousSignature": false,
"DisableUpdateCheck": false,
"EnableDebug": false,
"EnableSyslog": false,
"Files": [
"\/config\/config.hc1"
],
"HTTPAPIResponseHeaders": {
},
"LeaveOnInt": false,
"LeaveOnTerm": false,
"LogLevel": "INFO",
"NodeName": "",
"Ports": {
"HTTP": 4646,
"RPC": 4647,
"Serf": 4648
},
"Region": "global",
"Revision": "da97ad4dddff52d7d8d2a2cc81aa73b64558cf50",
"Server": {
"BootstrapExpect": 0,
"DataDir": "",
"Enabled": false,
"EnabledSchedulers": null,
"HeartbeatGrace": "",
"NodeGCThreshold": "",
"NumSchedulers": 0,
"ProtocolVersion": 0,
"RejoinAfterLeave": false,
"RetryInterval": "30s",
"RetryJoin": [
],
"RetryMaxAttempts": 0,
"StartJoin": [
]
},
"SyslogFacility": "LOCAL0",
"TLSConfig": {
"CAFile": "",
"CertFile": "",
"EnableHTTP": false,
"EnableRPC": false,
"KeyFile": "",
"VerifyServerHostname": false
},
"Telemetry": {
"CirconusAPIApp": "",
"CirconusAPIToken": "",
"CirconusAPIURL": "",
"CirconusBrokerID": "",
"CirconusBrokerSelectTag": "",
"CirconusCheckDisplayName": "",
"CirconusCheckForceMetricActivation": "",
"CirconusCheckID": "",
"CirconusCheckInstanceID": "",
"CirconusCheckSearchTag": "",
"CirconusCheckSubmissionURL": "",
"CirconusCheckTags": "",
"CirconusSubmissionInterval": "",
"CollectionInterval": "1s",
"DataDogAddr": "",
"DisableHostname": false,
"PublishAllocationMetrics": false,
"PublishNodeMetrics": false,
"StatsdAddr": "",
"StatsiteAddr": "",
"UseNodeName": false
},
"Vault": {
"Addr": "https:\/\/vault.service.consul:8200",
"AllowUnauthenticated": true,
"ConnectionRetryIntv": 30000000000,
"Enabled": null,
"Role": "",
"TLSCaFile": "",
"TLSCaPath": "",
"TLSCertFile": "",
"TLSKeyFile": "",
"TLSServerName": "",
"TLSSkipVerify": null,
"TaskTokenTTL": "",
"Token": ""
},
"Version": "0.5.4",
"VersionPrerelease": ""
},
"member": {
"Addr": null,
"DelegateCur": 0,
"DelegateMax": 0,
"DelegateMin": 0,
"Name": "",
"Port": 0,
"ProtocolCur": 0,
"ProtocolMax": 0,
"ProtocolMin": 0,
"Status": "none",
"Tags": null
},
"stats": {
"runtime": {
"version": "go1.7.5",
"max_procs": "1",
"goroutines": "30",
"cpu_count": "1",
"kernel.name": "linux",
"arch": "amd64"
},
"client": {
"heartbeat_ttl": "16.71547559s",
"node_id": "b26dba01-d6d1-a742-b6a9-94140ede2739",
"known_servers": "10.226.1.1:4647",
"num_allocations": "0",
"last_heartbeat": "6.535942769s"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment