-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
executable file
·32 lines (22 loc) · 1.24 KB
/
README.txt
File metadata and controls
executable file
·32 lines (22 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
stats visualization for couchdb
===============================
Setup stats tracker
-------------------
python stats_copy.py <server_to_track> <target_server> <target_database> <stats range>
To store localhost couchdb stats each minute on localhost/stats use
$ python stats_copy.py localhost localhost stats 60 &disown
I suggest to use range 900 (15 minutes) in production, more than that is almost certainly overkill.
But you get to choose your poison.
To stop, kill the process.
Install couchapp app/ in the same database where the stats are being collected.
Greate a ogus document with id bogus (Yes yes. It's lame but works, so relax :)
Views
=====
* All http requests (grouped by hours)
http://caprazzi.net:5984/stats/_design/app/_list/table/http_requests_hits?group_level=4
* Http requests by method (grouped by hours)
http://caprazzi.net:5984/stats/_design/app/_list/table_multi/http_requests_hits_by_method?group_level=4
* Status codes hits (grouped by hours)
http://caprazzi.net:5984/stats/_design/app/_list/table_multi/http_status_codes_hits?group_level=4
* Requests with cumulative and avg time (grouped by hours)
http://caprazzi.net:5984/stats/_design/app/_list/table_multi/request_time?group_level=4