Documentation: stats/metrics reset on etcd restart

Addressing https://github.com/coreos/etcd/issues/4035.
release-2.3
Gyu-Ho Lee 2016-01-11 23:14:02 -08:00
parent 374b14e471
commit 5fb26f2e8c
2 changed files with 2 additions and 0 deletions

View File

@ -1052,6 +1052,7 @@ curl http://127.0.0.1:2379/v2/stats/self
### Store Statistics
The store statistics include information about the operations that this node has handled.
Note that v2 `store Statistics` is stored in-memory. When a member stops, store statistics will reset on restart.
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.

View File

@ -3,6 +3,7 @@
**NOTE: The metrics feature is considered experimental. We may add/change/remove metrics without warning in future releases.**
etcd uses [Prometheus](http://prometheus.io/) for metrics reporting in the server. The metrics can be used for real-time monitoring and debugging.
etcd only stores these data in memory. If a member restarts, metrics will reset.
The simplest way to see the available metrics is to cURL the metrics endpoint `/metrics` of etcd. The format is described [here](http://prometheus.io/docs/instrumenting/exposition_formats/).