Commit Graph

190 Commits

Author SHA1 Message Date
Mathias Lafeldt
a61494166b Add HTTP basic auth support to Nomad client code
In order to authenticate against protected endpoints, e.g.

```
export NOMAD_ADDR=https://$USER:$PASSWORD@nomad.example.net
nomad status
```

Instead of adding username and password to `api.Config`, this is a
rather simple change to the request handler code that passes along any
basic auth information.
2016-07-18 15:34:34 +02:00
Alex Dadgar
a1b46b3a6d Allow following of files when cating and fix offsets 2016-07-13 15:33:17 -06:00
Alex Dadgar
398f888662 Add FrameReader test 2016-07-13 14:37:03 -06:00
Alex Dadgar
991220b5c7 implement -n for tail 2016-07-13 13:26:09 -06:00
Alex Dadgar
25dd45c763 frames to reader 2016-07-12 17:34:32 -06:00
Alex Dadgar
3cc13aeca1 initial comments 2016-07-11 10:58:18 -06:00
Alex Dadgar
4f7c5fa502 StreamFramer encapsulates the sending, heartbeating and batching behavior of frames 2016-07-10 13:57:04 -04:00
Alex Dadgar
3159859949 initial command implementation 2016-07-10 13:57:04 -04:00
Diptanu Choudhury
6cb5fd3694 Allowing ports to be overriden in check definitions 2016-07-08 14:14:25 -07:00
Alex Dadgar
e8b69052aa plan displays launch time of periodic jobs 2016-06-15 13:34:45 -07:00
Alex Dadgar
020f8b05d3 only support latest and remove ring buffer 2016-06-12 09:32:38 -07:00
Alex Dadgar
1a7df4e7d2 Allocation resources returned in a struct 2016-06-11 21:04:10 -07:00
Alex Dadgar
490e35da00 Merge pull request #1243 from hashicorp/f-run-modify-index
Add check-index flag to nomad run
2016-06-11 16:12:53 -07:00
Sean Chittenden
9b6e720fbe Merge pull request #1201 from hashicorp/f-dyn-server-list
Dynamic Server Lists/Client Bootstrapping via consul.
2016-06-11 18:58:25 -04:00
Alex Dadgar
a9c97cfb19 Don't require slash for node stats 2016-06-11 13:15:57 -07:00
Diptanu Choudhury
4ac1c673aa Implementing the total ticks per task for the docker driver 2016-06-10 23:33:25 +02:00
Diptanu Choudhury
358cdf8f63 Calculating total ticks consumed in the nomad client 2016-06-10 23:14:33 +02:00
Diptanu Choudhury
c13e750a02 Calculating the cpu ticks in nomad client 2016-06-10 22:22:32 +02:00
Sean Chittenden
2ac7ecb5b8 Remove useless statement 2016-06-10 15:54:39 -04:00
Sean Chittenden
2abd37c741 Silence unused variable warning 2016-06-10 15:50:11 -04:00
Sean Chittenden
681a7d6930 Remove testing for an API that doesn't exist any more. 2016-06-10 15:50:11 -04:00
Alex Dadgar
17af581d93 Annotate what is measured 2016-06-09 19:45:41 -07:00
Alex Dadgar
693299cd9b Add check-index flag to nomad run 2016-06-08 17:56:32 -07:00
Alex Dadgar
5ffb2f024c Merge pull request #1237 from hashicorp/b-regions
CLI can forward request to different regions
2016-06-08 11:00:23 -07:00
Diptanu Choudhury
4fc5eedfa7 Moving the stats error to the bottom of alloc status 2016-06-08 12:28:41 -04:00
Alex Dadgar
cc80c2442f Run and plan automatically sets the region 2016-06-07 11:28:07 -07:00
Alex Dadgar
c77026f5da plan shows failure reasons and ordered annotations 2016-05-31 21:51:23 +00:00
Diptanu Choudhury
06f8d58038 Making the cli use new apis 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
15e79c3783 Changing the api of the stats endpoints 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
f16191c297 comments 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
25be2da69c Using the api client for querying nomad client endpoints 2016-05-28 19:59:20 -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
33f2d0c18a Added a stats api for retreiving node stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
6132ccc230 Added pidstats in task resource usage struct 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3192e318e9 Renamed CpuUsage to CpuStats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
cbe6f6a235 updating the CpuStats api 2016-05-28 19:51:22 -07:00
Diptanu Choudhury
50250b1455 Added the nomad stats command 2016-05-28 19:42:34 -07:00
Alex Dadgar
6dc9b7e1ac Merge pull request #1188 from hashicorp/f-no-failed-allocs
Failed Allocation Metrics stored in Evaluation
2016-05-24 20:06:28 -07:00
Alex Dadgar
92bddbc3a5 rename SpawnedBlockedEval and simplify map safety check 2016-05-24 18:12:59 -07:00
Alex Dadgar
ef77f58947 nil protection 2016-05-24 11:18:32 -07:00
Alex Dadgar
05ea2bd583 Compress HTTP API responses and have the api client utilize this 2016-05-24 10:26:53 -07:00
Alex Dadgar
6deadf1ccd Evals track blocked evals they create 2016-05-19 13:09:52 -07:00
Alex Dadgar
96ab783b3f Scheduler no longer produces failed allocations; failed alloc metrics stored in evaluation 2016-05-18 18:11:40 -07:00
Alex Dadgar
af7725432c Merge pull request #1168 from hashicorp/f-plan-endpoint
Job.Plan endpoint
2016-05-16 13:15:40 -07:00
Alex Dadgar
f56bdbe03a Switch to using the harness 2016-05-16 12:49:18 -07:00
Sean Chittenden
29be52f762 Speling police 2016-05-15 09:41:34 -07:00
Alex Dadgar
85323c5db6 Remove plan from the response 2016-05-12 11:29:38 -07:00
Alex Dadgar
614a93e1e8 Plan api 2016-05-11 18:51:48 -07:00