Commit Graph

84 Commits

Author SHA1 Message Date
Alex Dadgar
85a1899dfa Reduce startup time on Mac
This PR moves creating the API client into the returned predict
function. The creation of the client causes a lookup of all the system
certificates and doing that for each command on mac was extremely slow.
2017-08-28 11:29:27 -07:00
Alex Dadgar
4d97b302a0 Search respects QueryOptions and returns QueryMeta
@chelseakomlo heads up on this change
2017-08-27 22:17:51 -07:00
Chelsea Holland Komlo
e88228cc5d add global flags to autocomplete 2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
335cf888b0 use PredictAnything when an flag accepts an argument 2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
c1e5c7132a enable autocompletion of flags 2017-08-23 22:57:07 +00:00
Alex Dadgar
d493797b49 move autocomplete functions to top for consistency of placement 2017-08-22 13:41:42 -07:00
Alex Dadgar
7a6ccf126c Merge pull request #3002 from jrasell/gh_2993
Add the Nomad agent version to the node-status CLI output.
2017-08-22 10:43:25 -07:00
James Rasell
fe481ae0dd Updates based on feedback provided by dadgar. 2017-08-16 22:19:31 +01:00
Chelsea Holland Komlo
ca6562adbd tab completion should only happen once 2017-08-16 17:04:47 +00:00
Chelsea Holland Komlo
af2f20f1bf tests for autocomplete functions 2017-08-15 20:21:50 +00:00
Chelsea Holland Komlo
6f0413528a adding autocomplete for nodes, evals, and jobs 2017-08-14 20:44:28 +00:00
“James
113e9b0c33 Add the Nomad agent version to the node-status CLI putput. 2017-08-10 08:27:26 +01:00
Alex Dadgar
3cd8d50bbc Multiple matched objects now treated as an error condition. 2017-07-20 17:31:07 -07:00
Alex Dadgar
c5b1e2dcc1 alloc-list shows version 2017-07-07 12:12:48 -07:00
Alex Dadgar
468c886282 Formatting abilities 2017-07-07 12:07:07 -07:00
Alex Dadgar
07f7e19578 Fix vet script and fix vet problems
This PR fixes our vet script and fixes all the missed vet changes.

It also fixes pointers being printed in `nomad stop <job>` and `nomad
node-status <node>`.
2017-02-27 16:00:19 -08:00
Alex Dadgar
22969c07ea Node-status displays drivers
This PR adds the drivers that are enabled to the output of `nomad
node-status`
2017-02-22 18:54:28 -08:00
Diptanu Choudhury
f551dcb83e Making the job spec return api.Job 2017-02-16 13:52:39 -08:00
Alex Dadgar
bdf452b994 Output Node meta in verbose mode 2016-10-20 17:36:34 -07:00
Mathias Lafeldt
464e1c8b78 Make node-status -short work without node stats 2016-08-29 17:45:37 +02:00
Diptanu Choudhury
d8dd52c720 Merge pull request #1538 from nak3/output-host-disk-utilization2
node-status outputs volumename instead of 0B utilization when non-physical volume is used
2016-08-10 15:09:23 -07:00
Kenjiro Nakayama
7d804a41c7 Add test to check both -json and -t are not specified 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
4edc906be4 Support JSON and template data output list when no args specified 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
4a3f63f641 Update help and error message 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
02613e170b Stop using format option and support json and t option 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
6c694014b4 Support JSON and template format with nomad CLI 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
5cbe16bb43 node-status outputs volumename instead of 0B utilization with non-physical volume 2016-08-09 08:51:19 +09:00
Kenjiro Nakayama
cc61998d57 tiny: Add MHz to node-status output 2016-08-08 13:12:01 +09:00
Sean Chittenden
800d1db732 Improve the error messages when obtaining node and alloc stats 2016-06-17 13:24:10 -07:00
Alex Dadgar
69c0851ee0 Update node-status docs 2016-06-16 14:50:41 -07:00
Alex Dadgar
f3c1ef20fe use base 1024 for bytes not 1000 2016-06-12 14:20:39 -07:00
Alex Dadgar
b1bd788c55 unify units 2016-06-12 11:19:45 -07:00
Alex Dadgar
6c25978d9a show allocation resources seperate from host 2016-06-12 11:19:45 -07:00
Alex Dadgar
eb6055448e initial refactor and cleanup 2016-06-12 11:19:45 -07:00
Diptanu Choudhury
358cdf8f63 Calculating total ticks consumed in the nomad client 2016-06-10 23:14:33 +02:00
Diptanu Choudhury
e4bad88a87 Changed the logic of calculation of node cpu usage 2016-06-10 03:24:42 +01:00
Diptanu Choudhury
5b50e01b93 Moving the stats error to the bottom of node status 2016-06-08 12:21:20 -04:00
Diptanu Choudhury
cc2b47b939 Indicating which values are percentages 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
1e2ebced8d Getting inodes used percent back 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
f50b0da147 Showing detailed resource usage stats in alloc-stats 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
b4a17d408b Showing actual resource usage 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
0b67729e6c Added the stats flag 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
6f54b4aa02 Removing inode percent since it doesn't work in some cases 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
78709127ba Fixed the node status cli command 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
4491c2b0e8 Added disk usage to node status 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
1183037d56 Added uptime to node stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
aee9db02d5 Showing host resource usage stats 2016-05-28 19:59:20 -07:00
Alex Dadgar
e6e3225c5c Add -self flag to node-drain 2016-04-11 15:20:49 -07:00
Alex Dadgar
3fbe8a1642 node-status -self command and docs 2016-03-29 12:36:24 -07:00
Alex Dadgar
0872c8effd node-status fix panic 2016-03-22 16:25:25 -07:00