Ryan Uber
bfb27d18cd
agent: initial pass threading through tokens for services/checks
2015-04-27 18:33:46 -07:00
Ryan Uber
6ce6d2d806
agent: write API's on /v1/agent block for anti-entropy
2015-02-20 19:43:33 -08:00
Ryan Uber
8b0fe52be2
agent/http: fix service registration with nil checks value
2015-01-23 18:50:51 -08:00
Ryan Uber
61d17e65f5
agent: prevent duplicate error messages for maintenance api
2015-01-21 13:28:26 -08:00
Ryan Uber
f00b5b542e
agent: support passing ?reason= for custom notes field values on maintenance checks
2015-01-21 12:21:57 -08:00
Ryan Uber
9c69dc05fb
agent: use strconv.ParseBool for parsing maintenance enable flag
2015-01-21 09:53:31 -08:00
Ryan Uber
2a7211cd5d
agent: support adding multiple checks during service registration from the API
2015-01-20 21:48:45 -08:00
Ryan Uber
674be58e55
agent: support multiple checks per service
2015-01-20 21:48:42 -08:00
Ryan Uber
7748c62d09
agent: node maintenance mode works
2015-01-16 15:38:13 -08:00
Ryan Uber
9ee1e6e858
agent: maintenance mode api's are idempotent
2015-01-16 15:37:52 -08:00
Ryan Uber
35c10a902f
agent: test http endpoints for maintenance mode
2015-01-16 15:37:51 -08:00
Ryan Uber
2973cd9131
agent: first pass at service maintenance mode
2015-01-16 15:37:51 -08:00
Ryan Uber
b7587cac42
agent: allow config reload to modify checks/services persistence
...
This change consolidates loading services and checks from both config
and persisted state into methods on the agent. As part of this, we
introduce optional persistence when calling RemoveCheck/RemoveService.
Fixes a bug where config reloads would kill persisted services/checks.
Also fixes an edge case:
1. A service or check is registered via the HTTP API
2. A new service or check definition with the same ID is added to config
3. Config is reloaded
The desired behavior (which this implements) is:
1. All services and checks deregistered in memory
2. All services and checks in config are registered first
3. All persisted checks are restored using the same logic as the agent
start sequence, which prioritizes config over persisted, and removes
any persistence files if new config counterparts are present.
2014-11-26 12:46:42 -08:00
Ryan Uber
9f9087badb
agent: prefer config over persisted services/checks ( #497 )
2014-11-24 19:40:53 -08:00
William Tisäter
d794a18761
Return both member and config in `/v1/agent/self`
2014-05-28 00:09:28 +02:00
William Tisäter
d0e447d29b
Add `/v1/agent/self` and return local agent config
2014-05-27 01:15:33 +02:00
Tarrant
32da5b2de0
When mangaling JSON to parse durations do a case insensitive key lookup
2014-04-24 19:56:55 -07:00
Armon Dadgar
00bedd4020
agent: Fix decoding of checks. Fixes #60
2014-04-21 15:02:36 -07:00
Armon Dadgar
779e6df7b8
website: finish the HTTP documentation
2014-02-19 14:27:01 -08:00
Armon Dadgar
1a5158212c
agent: First pass at parsing service and check definition
2014-02-03 15:15:35 -08:00
Armon Dadgar
37cb0bd3f2
agent: First pass at register service and check locally
2014-01-30 15:35:38 -08:00
Armon Dadgar
964147c452
agent: First pass at the easy endpoints
2014-01-30 15:18:05 -08:00
Armon Dadgar
959ea3d5ec
agent: Skeleton for HTTP based service/check registration
2014-01-30 14:58:36 -08:00
Armon Dadgar
410a0de0c8
Seperate localState from Agent
2014-01-21 11:52:25 -08:00
Armon Dadgar
cb7541c7af
Exposing the agent checks and services over HTTP endpoints
2014-01-20 15:00:52 -10:00
Armon Dadgar
5a087809dc
Adding more HTTP endpoints
2014-01-03 17:15:51 -08:00