Generating Graphs from Bucket Stat Data

Hey guys,

I am looking to decommission one of my older couchbase servers (4.1.1) and was hoping to keep the analytical data of the buckets around for reference. I was wondering if there are any known libraries or tools for generating similar graphs to that of the “Bucket Analytics” graphs from the couchbase UI? I’ve found the two sources of data for it in “GET /pools/default/buckets/[bucket-name]/stats” and the backups stored at /opt/couchbase/var/lib/couchbase/stats, however, I am unsure what can be done with these datasets. Is there any way to regenerate the graphs from these data points? Thanks in advanced!

You may want to have a look at this: https://github.com/signalfx/collectd-couchbase

this will allow you to collector metrics and send them to whatever backend you want (graphite, InfluxD, Prometheus).

That’s python, so maybe you could even adapt it to read from logs to have old data.

To add new metrics, just edit this file: https://github.com/signalfx/collectd-couchbase/blob/master/metric_info.py

1 Like