{"repo":"adinhodovic/django-mixin","free":true,"listed":false,"github":"https://github.com/adinhodovic/django-mixin","clone":"git clone https://github.com/adinhodovic/django-mixin.git","description":"Monitoring mixin for Django-prometheus. A set of Grafana dashboards and Prometheus rules for Django.","language":"Jsonnet","stars":79,"topics":["django","django-prometheus","grafana","grafana-dashboard","monitoring","prometheus","django-rest-framework","monitoring-mixins"],"license":null,"category":"analytics","readme_excerpt":"Prometheus Monitoring Mixin for Django A set of Grafana dashboards and Prometheus alerts for Django using the metrics from Django Prometheus. Dashboards - Django Overview - Django Overview, an overview of the database, cache and requests. - Django Requests Overview - Django request overview, providing insights of all requests filterable by view and method. Separate graphs for app and admin views, has as well weekly breakdowns for top templates, top exceptions by type, top exceptions by view and top responses by view. - Django Requests by View - Django requests by view, a breakdown of requests by view that shows compute expensive metrics as latency buckets alongside requests, responses and status codes. Generated dashboards are also in the ./dashboards out directory. How to use This mixin is designed to be vendored into the repo with your infrastructure config. To do this, use jsonnet-bundler: You then have three options for deploying your dashboards 1. Generate the config files and deploy them yourself 2. Use jsonnet to deploy this mixin along with Prometheus and Grafana 3. Use prometheus-operator to deploy this mixin Or import the dashboard using json in ./dashboards out , alternatively import them from the Grafana.com dashboard page. Generate config files You can manually generate the alerts, dashboards and rules files, but first you must install some tools: Then, grab the mixin and its dependencies: Finally, build the mixin: The prometheus alerts.yaml file then need to pas","default_branch":null,"files":null,"tree":[],"storefront":"/r/adinhodovic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adinhodovic/django-mixin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}