Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A visual stat tool for CrateDB clusters

Project Description

*A visual stat tool for `CrateDB`_ clusters*

... formerly known as ``ctop``.

``cstat`` is ispired by the awesome interactive process monitoring tool `htop`_.
``cstat`` should be a similar tool to `iostat`_, but for monitoring `CrateDB`_

.. image:: screenshot.png
:scale: 100%
:alt: Screenshot of cstat in action


Right now, ``stat`` is only available from `Github`_. Therefore you need to
checkout the repository and run ``pip install`` on the local directory.
A first version should be available from PyPi_ in summer 2016.


git clone cstat
cd cstat
python3.4 -m venv env
source ./env/bin/activate
pip install -e .


After installation the program can be invoked by the following command::

>>> cstat --help
usage: cstat [-h] [--hosts HOST [HOST ...]] [--interval INTERVAL] [--version]

A visual stat tool for CrateDB clusters

optional arguments:
-h, --help show this help message and exit
--hosts HOST [HOST ...], --crate-hosts HOST [HOST ...]
one or more CrateDB hosts to connect to
--interval INTERVAL, --refresh-interval INTERVAL
amount of time in seconds between each update
--version show program's version number and exit


* ``0`` .. toggle cluster info
* ``1`` .. show utilization for CPU, process, memory, heap and disk
* ``2`` .. show I/O statistics for network and disk
* ``3`` .. show aggregated query duration based on `jobs_log`_
* ``x`` .. toggle nodes/aggregation view
* ``f1`` .. enable/disable job logging (this also sets the ``stats.jobs_log``
cluster setting)

Known Issues

- Small terminal sizes will raise CanvasErrors because of content overflow.


- [x] display disk usage
- [x] display disk i/o
- [x] display network i/o
- [x] display node names in detail views
- [ ] use asyncio to perform http requests
- [x] coloring of i/o stats
- [ ] responsive i/o widget

.. _htop:
.. _iostat:
.. _CrateDB:
.. _PyPi:
.. _Github:
.. _jobs_log:
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cstat-0.1.0.tar.gz (64.8 kB) Copy SHA256 Checksum SHA256 Source Mar 30, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting