Statismo
Statismo is minimal collector of custom metrics for django applications. It aggregates statistics into a configurable backend before periodically pushing them to an external service such as Cloudwatch.
Currently, supports the following backends:
- Django's database
- Redis
And the following services:
- AWS Cloudwatch
Installation
To install statismo, simply run:
pip install statismo
To use statismo with redis:
pip install statismo[redis]
Configuration
Add statismo to your INSTALLED_APPS setting:
INSTALLED_APPS = [
...,
'statismo',
]
Add the following settings to your settings.py to use the django database
collector, which is suitable for small to medium-sized applications:
STATISMO_METRIC_COLLECTOR = 'statismo.collectors.db.DatabaseCollector'
For larger applications, you may want to use the Redis collector:
STATISMO_METRIC_COLLECTOR = 'statismo.collectors.redis.RedisCollector'
STATISMO_METRIC_URL = 'redis://localhost:6379/0'
Finally, to use a custom namespace for your metrics other than the default of
statismo, add the following setting:
STATISMO_METRIC_NAMESPACE = 'myapp'
Finally, the periodic task that uploads metrics needs to be enabled. If you're
using Celery's django integration, this can be done by adding the following to
your settings.py:
CELERY_BEAT_SCHEDULE = {
"accumulate-metrics-every-5-minutes": {
"task": "statismo.tasks.accumulate_metrics",
"schedule": 60 * 5,
}
}
Metadata
Release files for statismo 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| statismo-0.2.2.tar.gz | 6.8 kB | Without provenance | Details for statismo-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| statismo-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for statismo-0.2.2-py3-none-any.whl |
Total release size: 14.7 kB
Release files / statismo-0.2.2.tar.gz
| Download URL | statismo-0.2.2.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b0df8be624f7f892591f776ed33d5c91fa826e88e226c180b8f6344e5902be2
|
|
BLAKE2b-256 checksum How to use checksums |
6b5306cdcb6f9fa28a631b1de1da10e737a1ea149fb241f31fbede576402dfa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.7
|
Release files / statismo-0.2.2-py3-none-any.whl
| Download URL | statismo-0.2.2-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b744fb57741bc6a140a26f0fe2c6be0caa22cdef8bb11fb70a85054491cb4ce0
|
|
BLAKE2b-256 checksum How to use checksums |
0cfb0898f6b1418cdcba053bb561ee6387de6564d9615ef53e90122698829dca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.6.7
|
Security for statismo 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.