Nick Ethier
69e6b0ea21
nomad: fix hclog usage
2018-11-29 22:27:39 -05:00
Nick Ethier
19c260a4a5
command/agent: additional tests for telemetry config parsing
2018-11-19 23:22:33 -05:00
Nick Ethier
825c2ffca9
nomad: only lookup job is disable_dispatched_job_summary_metrics is set
2018-11-19 23:22:23 -05:00
Nick Ethier
8de254c5c5
nomad: lookup job instead of adding Dispatched to summary
2018-11-19 23:22:02 -05:00
Nick Ethier
af3f535f0a
agent: suppose filter_default telemetry option
2018-11-19 23:21:48 -05:00
Nick Ethier
4182e3e141
nomad: add flag to disable publishing of job_summary metrics for dispatched jobs
2018-11-19 23:21:19 -05:00
Michael Lange
a1d5f127e3
Merge pull request #4860 from hashicorp/b-ui-allocation-detail-empty-state
...
UI: Allocation detail empty state
2018-11-19 12:43:39 -08:00
Michael Lange
122a8a12e8
Add an empty state to the allocation detail task list
2018-11-19 12:18:14 -08:00
Michael Lange
654611ea9a
Merge pull request #4850 from hashicorp/f-ui-links-on-error-pages
...
UI: Escape hatch links on error pages
2018-11-19 12:17:36 -08:00
Omar Khawaja
c5a222bd19
change instrumented webserver job file ( #4897 )
2018-11-17 01:10:44 -05:00
Omar Khawaja
dce594bb6d
clarification regarding Nomad client generating token vs retrieving ( #4890 )
2018-11-16 19:52:31 -05:00
Mahmood Ali
6b7953af21
Merge pull request #4884 from hashicorp/f-alloc-devices-cli
...
Report alloc device statistics in API and CLI
2018-11-16 18:04:54 -05:00
Mahmood Ali
551a13b7b6
show Device Stats header in alloc status
2018-11-16 17:34:37 -05:00
Mahmood Ali
d8d0a55ee4
Show stable order of device attributes
2018-11-16 17:34:37 -05:00
Mahmood Ali
fd49039f09
address review comments
2018-11-16 17:13:01 -05:00
Michael Schurter
b0dcbb7665
Merge pull request #4843 from hashicorp/b-driver-env
...
client: interpolate driver configurations
2018-11-16 12:45:43 -06:00
Preetha
07e31669ba
Update CHANGELOG.md
2018-11-16 12:31:54 -06:00
Preetha
5003f51dc9
Merge pull request #4889 from hashicorp/f-service-meta
...
Pass service metadata "external-source" for consul UI integration
2018-11-16 12:24:21 -06:00
Preetha Appan
3cf22d2903
Pass service metadata "external-source" for consul UI integration
2018-11-16 11:28:56 -06:00
Mahmood Ali
17eb416df7
tweak whitespace in device stats output
2018-11-16 10:37:39 -05:00
Mahmood Ali
4f18086d35
Display device stats in nomad alloc status
2018-11-16 10:26:32 -05:00
Mahmood Ali
6208d53275
Prepare to reuse device resources printing
2018-11-16 10:26:32 -05:00
Mahmood Ali
58cbafe913
Populate alloc stats API with device stats
...
This change makes few compromises:
* Looks up the devices associated with tasks at look up time. Given
that `nomad alloc status` is called rarely generally (compared to stats
telemetry and general job reporting), it seems fine. However, the
lookup overhead grows bounded by number of `tasks x total-host-devices`,
which can be significant.
* `client.Client` performs the task devices->statistics lookup. It
passes self to alloc/task runners so they can look up the device statistics
allocated to them.
* Currently alloc/task runners are responsible for constructing the
entire RPC response for stats
* The alternatives for making task runners device statistics aware
don't seem appealing (e.g. having task runners contain reference to hostStats)
* On the alloc aggregation resource usage, I did a naive merging of task device statistics.
* Personally, I question the value of such aggregation, compared to
costs of struct duplication and bloating the response - but opted to be
consistent in the API.
* With naive concatination, device instances from a single device group used by separate tasks in the alloc, would be aggregated in two separate device group statistics.
2018-11-16 10:26:32 -05:00
Preetha
fff2d6f4d8
Merge pull request #4882 from sportebois/f-update-docs-env-stanza-coercion
...
Change misleading boolean example in env stanza coercion section (#4820 )
2018-11-16 08:00:56 -06:00
Michael Schurter
9189173649
tests: fix tests post-rebase
2018-11-15 17:40:56 -08:00
Michael Schurter
a552a0c42c
client/tr: add a bit of context to envbuilder errors
2018-11-15 16:26:25 -08:00
Michael Schurter
2283c8fff3
client: remove old proxy references from comments
2018-11-15 16:26:25 -08:00
Michael Schurter
926e3dc706
client: test more env key variations
2018-11-15 16:26:25 -08:00
Michael Schurter
b878bbf3f7
client: add new nested variables to task's hcl ctx
...
The error messages are really bad, but it's extremely difficult to
produce good error messages without the original HCL.
2018-11-15 16:26:25 -08:00
Michael Schurter
c4c0869a2e
docs: document new interpolation behavior and options
2018-11-15 16:26:25 -08:00
Michael Schurter
26211408a6
client: turn env into nested objects for task configs
2018-11-15 16:25:57 -08:00
Michael Schurter
43b359914b
client: interpolate driver configurations
...
Also add missing SetDriverNetwork calls.
2018-11-15 16:25:57 -08:00
Michael Schurter
ca4e237d62
gofmt -s -w command/helper_stats_test.go
...
Fixes the static checks build
2018-11-15 14:14:05 -08:00
Danielle Tomlinson
60c6cb8586
Merge pull request #4875 from hashicorp/f-constraints
...
scheduler: Make != constraints more flexible
2018-11-15 11:04:21 -08:00
Mahmood Ali
6542d6de75
Merge pull request #4879 from hashicorp/f-node-devices-cli
...
Show device stats in nomad CLI
2018-11-15 14:02:22 -05:00
Danielle Tomlinson
5aac3047e0
Add changelog entry for != operator
2018-11-15 11:00:32 -08:00
Danielle Tomlinson
cf8bc3224d
docs: Add is_set/is_not_set
2018-11-15 11:00:32 -08:00
Danielle Tomlinson
3d0a45f6e5
scheduler: Add is_set/is_not_set constraints
...
This adds constraints for asserting that a given attribute or value
exists, or does not exist. This acts as a companion to =, or !=
operators, e.g:
```hcl
constraint {
attribute = "${attrs.type}"
operator = "!="
value = "database"
}
constraint {
attribute = "${attrs.type}"
operator = "is_set"
}
```
2018-11-15 11:00:32 -08:00
Sébastien Portebois
a71dea2ac9
Change misleading boolean example in env stanza coercion section
2018-11-15 13:12:58 -05:00
Mahmood Ali
5e2cdb48d4
Display StatsObject nested objects as well
2018-11-15 08:09:54 -05:00
Mahmood Ali
8274555d1c
Use disk display format for devices
2018-11-14 22:13:23 -05:00
Mahmood Ali
85f5007043
Print verbose device in nomad node status -stats
2018-11-14 22:13:23 -05:00
Mahmood Ali
276149eaa7
device stats summary in node status
...
Sample output with a mock device:
```
Host Resource Utilization
CPU Memory Disk
2651/26400 MHz 9.6 GiB/16 GiB 98 GiB/234 GiB
Device Resource Utilization
nomad/file/mock[README.md] 511 bytes
nomad/file/mock[e2e.go] 239 bytes
nomad/file/mock[e2e_test.go] 128 bytes
Allocations
No allocations placed
```
2018-11-14 22:13:23 -05:00
Mahmood Ali
0ed1ab65b4
Merge pull request #4872 from hashicorp/f-devices-client-stats
...
Expose Device Stats in Clients API
2018-11-14 21:18:23 -05:00
Mahmood Ali
e102b3751f
format vendor.json
2018-11-14 20:17:11 -05:00
Alex Dadgar
ab39343b91
Merge pull request #4874 from lunchbag/jen/update-share-img
...
Update open graph image
2018-11-14 14:36:44 -08:00
Mahmood Ali
c212716dda
Add NodeResource Device types in api package
2018-11-14 14:42:36 -05:00
Mahmood Ali
04ecb5c72a
Track Node Device attributes and serve them in API
2018-11-14 14:42:29 -05:00
Mahmood Ali
ba3fe15f7e
Add Client Device Stats structs in api package
2018-11-14 14:41:19 -05:00
Mahmood Ali
5af9296bb4
Expose Device Stats in /client/stats API endpoint
2018-11-14 14:41:19 -05:00