ckanext-statsd
StatsD extension for CKAN.
Collects timing and counter metrics from CKAN and sends them to a StatsD server for real-time monitoring and alerting.
Features
- Sends request timing data to StatsD
- Configurable StatsD host, port, and prefix
- Optional request timing logging
- Integration with Graphite/StatsD monitoring stack
- Lightweight metrics collection with minimal overhead
Requirements
- CKAN 2.7+
- StatsD server (e.g., Graphite/StatsD, Datadog Agent)
Installation
To install ckanext-statsd:
- Activate your CKAN virtual environment.
- Install the extension:
pip install ckanext-statsd
or from source:
git clone https://github.com/rossjones/ckanext-statsd.git
cd ckanext-statsd
pip install -e .
- Add
statsd to the ckan.plugins setting in your CKAN config file.
- Configure the StatsD connection settings.
- Restart CKAN.
Config Settings
ckanext.statsd.host = localhost
ckanext.statsd.port = 8125
ckanext.statsd.prefix = ckan
ckanext.statsd.logtimes = true
License
MIT