Commit Graph

89 Commits

Author SHA1 Message Date
Alex Dadgar
21c2ba33e5 403 instead of 500 for permission denied 2017-10-12 14:10:20 -07:00
Alex Dadgar
5d724d619d ACL command options 2017-10-12 13:51:39 -07:00
James Rasell
f98f403401 Update agent CLI to include Consul config option flags.
This update introduces command line flags for all Consul options
thus allowing users to both use a config file and CLI options to
configure Consul.

Website documentation has also been updated.

Closes #3304
2017-10-05 14:26:26 +01:00
Chelsea Holland Komlo
6cba6549a5 fix bug to return prometheus sink 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo
59a891cb27 enabling prometheus metrics should be a config option 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo
815b23fe06 add endpoint for prometheus 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo
4085560503 add http endpoint for in memory metrics
prevent against flaky test due to timing/initialization issues
2017-09-06 13:51:19 +00:00
Alex Dadgar
c26ecb7092 Add version package
This PR adds a version package and consolidates version strings into a
Version struct.
2017-08-16 15:44:21 -07:00
Alex Dadgar
25ada7bbab Don't print atlas 2017-07-19 20:25:06 -07:00
Alex Dadgar
8a371e0bd4 Fix predictor 2017-07-19 11:51:01 -07:00
Alex Dadgar
3127ce320c Agent command autocompletes to hcl/json files 2017-07-19 11:28:16 -07:00
Adam Stankiewicz
4d465091dd Remove unnecessary parameter from NewHTTPServer 2017-04-10 16:24:49 +02:00
Alex Dadgar
6ac999a5e5 Flush logs on err 2017-03-14 14:48:39 -07:00
Sean Chittenden
6fc901a8f3 Change the default display name from the Circonus Instance ID to
`Nomad`.

The display name is already scoped to target/host.
2017-02-24 14:59:11 -08:00
Alex Dadgar
258ed556ba Vault Client on Server handles SIGHUP
This PR allows the Vault client on the server to handle a SIGHUP. This
allows updating the Vault token and any other configuration without
downtime.
2017-02-01 14:24:10 -08:00
Alex Dadgar
9b11f269e3 Add command line flag for create-from-role 2017-01-27 14:11:34 -08:00
Jorge Marey
a39cebb744 Add option to set nodename instead of hostname on telemetry values 2016-12-21 09:53:29 +01:00
Alex Dadgar
96cbf337c1 Move parsing of vault token above validation such that it works in dev mode 2016-11-10 11:47:43 -08:00
Michael Schurter
fa67fb6a71 Merge pull request #1955 from hashicorp/b-fix-default-advertise
Choose safer default advertise address
2016-11-09 16:03:17 -08:00
matt maier
e607c6f329 Update Circonus integration expose Check Display Name and Check Tags
configuration options.
2016-11-09 15:12:30 -05:00
Michael Schurter
1304ba8b2d Addresses are just addresses - no ports
Store address+port in an unexported field for ease-of-use
2016-11-09 11:49:55 -08:00
Michael Schurter
5cc435ab3e Move config normalization into config.go to ease testing 2016-11-08 15:44:10 -08:00
Michael Schurter
581d6a5320 Handle missing ports in addresses 2016-11-08 13:44:41 -08:00
Michael Schurter
2c4b19f1a6 Refactor getAdvertise into a func 2016-11-08 13:06:56 -08:00
Michael Schurter
3dab50318e Failure to resolve advertise address isn't fatal 2016-11-08 11:17:22 -08:00
Michael Schurter
4e7587de17 Choose safer default advertise address
* -dev mode defaults bind & advertise to localhost
* Normal mode defaults bind to 0.0.0.0 & advertise to the resolved
  hostname. If the hostname resolves to localhost it will refuse to
  start and advertise must be manually set.
2016-11-08 11:17:16 -08:00
Alex Dadgar
9939fa0971 Read from env 2016-11-01 12:37:27 -07:00
Alex Dadgar
3c41715d95 Vault flags 2016-10-24 17:23:48 -07:00
Alex Dadgar
902c3973db Print the version and client node ID 2016-10-20 17:46:04 -07:00
Alex Dadgar
746eeb121a Merge pull request #1816 from jippi/add-datadog-telemetry
Add datadog telemetry
2016-10-18 09:53:37 -07:00
Diptanu Choudhury
f0806dceff Enable serf encryption (#1791)
* Added the keygen command

* Added support for gossip encryption

* Changed the URL for keyring management

* Fixed the cli

* Added some tests

* Added tests for keyring operations

* Added a test for removal of keys

* Added some docs

* Fixed some docs

* Added general options
2016-10-17 10:48:04 -07:00
Christian Winther
43a11000b0 initial work on datadog telemetry 2016-10-15 10:49:33 +02:00
Alex Dadgar
8ac55269a3 Merge pull request #1803 from hashicorp/b-vault-parse
Fix Vault Config parsing of booleans
2016-10-11 13:47:46 -07:00
Alex Dadgar
9ff2bf0bff Fix Vault parsing of booleans 2016-10-10 18:04:39 -07:00
Alex Dadgar
3a4bb56cf7 Skip SIGPIPE 2016-10-10 15:12:56 -07:00
Robert Neumayer
5b0c04d84b Fix typo
Telementry -> Telemetry
2016-09-11 09:46:05 +02:00
Alex Dadgar
e2c179821e Vault config flags 2016-09-01 15:41:07 -07:00
Mathias Lafeldt
107dbba69a Fix reload of retry_join server addresses on SIGHUP
The current code does not update the actual config, but only the local
reference to it.
2016-08-11 16:03:21 +02:00
matt maier
d92dd0dc5a Circonus integration for telemetry metrics 2016-07-22 12:33:10 -04:00
Diptanu Choudhury
b71ace9c2c Fixed parsing of consul agent service names 2016-06-22 13:52:43 -07:00
Sean Chittenden
7dc7fcf052 Create config.DefaultConsulConfig() 2016-06-16 20:41:05 -07:00
Diptanu Choudhury
f10df99e5d Removed the stats block from client configuration 2016-06-16 21:30:29 +01:00
Sean Chittenden
ffcd2332d4 Rebalance Nomad client RPCs among different Nomad servers.
Implement client/rpc_proxy.RpcProxy.
2016-06-10 15:50:11 -04:00
Sean Chittenden
af72200cf4 Distill config.Config.ConsulConfig down to config.Config.Consul
The enclosed struct provides the necessary context
2016-06-10 15:48:36 -04:00
Sean Chittenden
7db2eb03c4 Use consul/lib's RandomStagger
Removes four redundant copies of the method in the process.
2016-06-10 15:48:36 -04:00
Jeff Mitchell
4a389c53e7 Use upstream high-level SCADA provider 2016-06-01 18:25:09 -04:00
Diptanu Choudhury
bf6c034fec Making the stats collection interval and number of data points to keep in memory configurable 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
a2237a6057 Implemented registering client and server services 2016-05-11 16:07:02 -07:00
Sean Chittenden
65d80a64e0 When checkpoint emits a log message indicating an agent is out of
date, include the current version along with the available version
according to checkpoint.

Inspired by: log output in hashicorp/consul#993
2016-05-04 23:56:37 -07:00
Dmitry Smirnov
2e755cd7e8 codespell: minor spelling corrections
Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2016-03-16 05:28:31 +11:00