big-r81 commented on code in PR #4672: URL: https://github.com/apache/couchdb/pull/4672#discussion_r1260783232
########## src/couch_stats/README.md: ########## @@ -1,18 +1,13 @@ # couch_stats -couch_stats is a simple statistics collection app for Erlang applications. Its -core API is a thin wrapper around a stat storage library (currently Folsom,) but -abstracting over that library provides several benefits: +couch_stats is a simple statistics collection app for Erlang applications. It +uses https://www.erlang.org/doc/man/counters.html to implement counters, +gauages and histograms. By default histograms record 10 seconds worth of data, +with a granularity of 1 second. -* All references to stat storage are in one place, so it's easy to swap - the module out. - -* Some common patterns, such as tying a process's lifetime to a counter value, - are straightforward to support. - -* Configuration can be managed in a single place - for example, it's much easier - to ensure that all histogram metrics use a 10-second sliding window if those - metrics are instantiated/configured centrally. +Stats are can be fetched with `couch_stats:fetch()`. That returns the current Review Comment: s/are can/can -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
