open-nomad/command/agent
Mahmood Ali 7b8cfee162 tests: deflake TestHTTP_FreshClientAllocMetrics
The test asserts that alloc counts get reported accurately in metrics by
inspecting the metrics endpoint directly.  Sadly, the metrics as
collected by `armon/go-metrics` seem to be stateful and may contain info
from other tests.

This means that the test can fail depending on the order of returned
metrics.

Inspecting the metrics output of one failing run, you can see the
duplicate guage entries but for different node_ids:

```
    {
      "Name": "service-name.default-0a3ba4b6-2109-485e-be74-6864228aed3d.client.allocations.terminal",
      "Value": 10,
      "Labels": {
        "datacenter": "dc1",
        "node_class": "none",
        "node_id": "67402bf4-00f3-bd8d-9fa8-f4d1924a892a"
      }
    },
    {
      "Name": "service-name.default-0a3ba4b6-2109-485e-be74-6864228aed3d.client.allocations.terminal",
      "Value": 0,
      "Labels": {
        "datacenter": "dc1",
        "node_class": "none",
        "node_id": "a2945b48-7e66-68e2-c922-49b20dd4e20c"
      }
    },
```
2019-11-22 18:41:21 -05:00
..
consul client: improve group service stanza interpolation and check_re… (#6586) 2019-11-18 13:04:01 -05:00
monitor unlock before returning, no need for label 2019-11-05 11:44:29 -05:00
test-resources chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
testdata config: Add required configuration for logging to a file 2019-10-07 14:16:59 +02:00
acl_endpoint.go
acl_endpoint_test.go
agent.go command/agent: Prune Dead Code (#6682) 2019-11-13 08:20:01 -05:00
agent_endpoint.go serverID to target remote leader or server 2019-11-14 10:07:35 -05:00
agent_endpoint_test.go wireup plain=true|false query param 2019-11-05 11:44:28 -05:00
agent_test.go command/agent: TestAgent_ServerConfig() fix dropped errors (#6659) 2019-11-11 09:46:46 -05:00
alloc_endpoint.go api: return X-Nomad-Index header on allocation stop 2019-06-21 16:20:06 +00:00
alloc_endpoint_test.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
bindata_assetfs.go client: improve group service stanza interpolation and check_re… (#6586) 2019-11-18 13:04:01 -05:00
command.go Added service wrapper code (#6220) 2019-11-11 15:16:07 -05:00
command_test.go
config.go config: Add required configuration for logging to a file 2019-10-07 14:16:59 +02:00
config_oss.go
config_parse.go clientconfig: Fix parsing multiple host volumes 2019-08-21 22:19:58 +02:00
config_parse_test.go config: Add required configuration for logging to a file 2019-10-07 14:16:59 +02:00
config_test.go cli: split -dev and -dev-connect flags 2019-08-30 09:33:30 -04:00
deployment_endpoint.go
deployment_endpoint_test.go
eval_endpoint.go
eval_endpoint_test.go
fs_endpoint.go agent: report fs log errors as http errors 2019-10-04 16:33:58 -04:00
fs_endpoint_test.go tests: avoid using unnecessary pipe 2019-10-15 17:22:03 -04:00
helpers.go
helpers_test.go
http.go Merge pull request #6669 from hashicorp/b-cors-allow-credentials 2019-11-20 15:14:01 -05:00
http_oss.go
http_test.go Merge pull request #6670 from hashicorp/api/fallthrough-test 2019-11-13 10:51:31 -05:00
job_endpoint.go Merge pull request #6448 from hashicorp/f-set-connect-sidecar-tags 2019-10-17 15:14:09 -05:00
job_endpoint_test.go connect: enable setting tags on consul connect sidecar service in jobspec (#6415) 2019-10-17 19:25:20 +00:00
keyring.go
keyring_test.go
log_file.go logging: Correctly track number of written bytes 2019-10-10 14:02:14 +02:00
log_file_test.go logging: Sort files when pruning old logs 2019-10-10 13:51:16 +02:00
log_levels.go Support for hot reloading log levels 2019-07-24 13:37:08 +02:00
log_levels_test.go
metrics_endpoint.go
metrics_endpoint_test.go tests: deflake TestHTTP_FreshClientAllocMetrics 2019-11-22 18:41:21 -05:00
node_endpoint.go take NodeID from url in api for node eligibility 2019-07-15 18:34:53 +03:00
node_endpoint_test.go take NodeID from url in api for node eligibility 2019-07-15 18:34:53 +03:00
operator_endpoint.go Rename to match system scheduler config. 2019-05-03 14:06:12 -05:00
operator_endpoint_test.go nomad: disable service+batch preemption by default 2019-06-04 15:54:50 -07:00
plugins.go
region_endpoint.go
region_endpoint_test.go
retry_join.go
retry_join_test.go
search_endpoint.go
search_endpoint_test.go
stats_endpoint.go
stats_endpoint_test.go
status_endpoint.go
status_endpoint_test.go
stub_asset.go
syslog.go
syslog_test.go
system_endpoint.go
system_endpoint_test.go
testagent.go only look up rpchandler for node if we have nodeid 2019-11-05 09:51:51 -05:00
testingutils_test.go command/agent: Prune Dead Code (#6682) 2019-11-13 08:20:01 -05:00