mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
feat(Documentation/api): document the store statistics
This commit is contained in:
parent
c7e642baa2
commit
7553a92232
@ -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
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user