Pull the metrics out of couchbase like QPS, gets/sec etc and plot them on the graph as Couchbase UI does?

Pull the metrics out of couchbase like QPS, gets/sec etc and plot them on the graph as Couchbase UI does .. As I have a personal program which continuosly can poll couchbase for all this data and plot them on a graph .. .

IS there an API call I can make to fetch these metrics for a specific bucket/server and plot them on the graph using my own program??

1 Answer

« Back to question.

Yes, you can. All of the metrics in the graph on the console are derived from the stats, which you can access from the .stats() method. If you hover over the mini graph in the console, it'll show you what stats it's using.

Also, everything you see in the console is available through a REST interface. Check out the docs at couchbase.com/docs for details.

cbstats ... I used that in shell and got the metrics ... But which metric can give me reads/sec on a particular view?

There are no stats on reads/sec for views at the moment.