Browse Source

Merge pull request #4187 from gyuho/store_stats

Documentation: stats/metrics reset on etcd restart
Gyu-Ho Lee 10 years ago
parent
commit
f2a4993c11
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Documentation/api.md
  2. 1 0
      Documentation/metrics.md

+ 1 - 0
Documentation/api.md

@@ -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.

+ 1 - 0
Documentation/metrics.md

@@ -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/).