Extension Custom Metrics & Statistics


Extension Basics

Title
Custom Metrics & Statistics
Name
ckanext-better-stats
Type
Public extension
Description
Define and display custom metrics with caching
CKAN versions

~2.9, ~2.10, ~2.11

Show details
Download-Url (zip)
Download-Url commit date
2024-07-01
Url to repo
Category
Visualization & Analytics


Background Infos

Description (long)
Show details

Flexible CKAN extension for defining and displaying custom metrics and statistics with support for caching, access control, and multiple output formats. Allows creation of custom metric definitions that can aggregate and display various CKAN statistics beyond default analytics. Features include configurable caching for performance, access control for metric visibility, multiple output format support, and extensible architecture for custom metric types. Depends on psutil>=7.0.0 for system metrics. Designed to replace or extend basic CKAN statistics with more sophisticated and customizable reporting capabilities.

Version
0.0.1
Version release date
2024-07-01
Contact name
Oleksandr Cherniavskiy
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Installation:

1. Activate CKAN virtual environment:

. /usr/lib/ckan/default/bin/activate

2. Clone and install:

git clone https://github.com/DataShades/ckanext-better-stats.git

cd ckanext-better-stats

pip install -e .

pip install -r requirements.txt

3. Add ‘better_stats’ to ckan.plugins in config file

4. Restart CKAN

#

Requirements:

- CKAN >= 2.6 (not tested on earlier versions)

- Python >= 3.10

- psutil >= 7.0.0 (for system metrics)

#

Features:

- Define custom metrics and statistics

- Caching support for performance

- Access control for metric visibility

- Multiple output formats

- Extensible architecture

- System metrics via psutil

#

Configuration:

No specific config settings documented yet (TODO in README)

Extension is in early development (0.0.1)

#

Use Cases:

- Custom dashboard metrics

- Advanced analytics beyond default CKAN stats

- Performance-optimized reporting with caching

- Role-based metric visibility

Plugins to configure (ckan.ini)
better_stats
CKAN Settings (ckan.ini)
(not set)
DB migration to be executed
(not set)
<< back to Extensions