postgres_metrics
Dropped official support for Django 3.0 and 3.1.
Warning
Use version 0.11 for Django 3.0 or 3.1 support!
- Loosened the requirements for psycopg2 on Django 3.1 and above. There's no need to limit to
psycopg2<2.9
anymore.
- Added support for PostgreSQL 14.
- Added support for Django 4.0 and Python 3.10.
- Added dark-mode support. (PR #59)
- Fixed several accessibility issues. (PR #58)
- Use pre-commit.ci for linting
- Use a single workflow file
- Use humanized sorting in the
Index Size <metrics.IndexSize>
andTable Size <metrics.TableSize>
metrics. - Extended the
Table Size <metrics.TableSize>
metric with additional information.
- Added support for translatable column titles.
- Added support for metrics to only be available on certain PostgreSQL versions.
- Fixed an issue in the
Cache Hits <metrics.CacheHits>
metric when a database doesn't track those metrics.
Dropped support for Django 1.11, 2.0, and 2.1.
Warning
Use version 0.7 for Django 1.11, 2.0, or 2.1 support!
- Added a
Sequence Usage <metrics.SequenceUsage>
that shows the extend to which a PostgreSQL sequence is been used. - Added a screenshot of what a metric looks like to the README and docs (#39 ).
- Fixed layout issues in Django's admin before 3.1.
- Fixed layout issues with Django's new admin design in 3.1.
- Updated project setup by moving to GitHub Actions
Added compatibility for Django 1.11 to 3.1
Warning
This is the last version to support Django < 2.2. Version 0.8 will only support Django 2.2, 3.0, and 3.1!
- Added missing installation instruction.
- Documentation building is now part of the CI tests.
- Fix release bundling.
- Added permission support for metrics. Users with
is_staff=True
can now be given access to each metric individually. - The
~templatetags.postgres_metrics.get_postgres_metrics
template tag now returns only metrics the current user (taken from therequest
object in the template context) has access to. This means the'django.template.context_processors.request'
context processor is now required. - The documentation now has an intersphinx setup to Python 3 and Django
- The hard dependency on psycopg2 was dropped because installing wheel files of psycopg2 can be troublesome as outlined by the project maintainers. When using django-postgres-metrics you now need to install psycopg2 or psycopg2-binary explicitly. This is usually not an issue as either one is required by Django anyway to use Django's PostgreSQL database backend.
- Added a
Detailed Index Usage metric <metrics.DetailedIndexUsage>
that shows the index usage off a table per index.
- Added the list of metrics on a metric's detail page
- Underscores in metric column headers are now replaced by spaces
- The
~metrics.IndexUsage
now shows floating point percentages - Added
~metrics.IndexSize
and~metrics.TableSize
- Added per metric record and record item styling
- Added description to
setup.py
- The metric results can now be sorted on any column
- Switched to Read The Docs theme for docs.
- Added "Available Extensions" metric.
- Fixed table styling in metric views. The tables now look more like Django Admin's ChangeList
- Excluded
tests
from built packages.
- Initial Release