feat(Documentation/api): document the store statistics

release-0.4
Brandon Philips 2014-01-08 10:40:57 -08:00
parent c7e642baa2
commit 7553a92232
1 changed files with 30 additions and 0 deletions

View File

@ -765,3 +765,33 @@ curl -L 127.0.0.1:4001/v2/stats/self
"state": "leader"
}
```
### Store Statistics
The store statistics include information about the operations that this node has handled.
Operations that modify the store's state like create, delete, set and update are seen by the entire cluster and the number will increase on all nodes.
Operations like get and watch are node local and will only be seen on this node.
```sh
curl -L 127.0.0.1:4001/v2/stats/store
```
```json
{
"compareAndSwapFail": 0,
"compareAndSwapSuccess": 0,
"createFail": 0,
"createSuccess": 2,
"deleteFail": 0,
"deleteSuccess": 0,
"expireCount": 0,
"getsFail": 4,
"getsSuccess": 75,
"setsFail": 2,
"setsSuccess": 4,
"updateFail": 0,
"updateSuccess": 0,
"watchers": 0
}
```