djangorf-base is a Django project built with the aim of avoiding boilerplate and being used as the base of other projects to build REST APIs using django-rest-framework.
Diagram drawn using diagrams.
This projects is built using docker
, docker-compose
and make
within the development environment.
make build && make up
will up and run the django rest server.
curl -H 'Accept: application/json; indent=4' -u user:passwd http://127.0.0.1:8000/users/
-
django_http_requests_body_total_bytes_bucket
-
django_http_responses_body_total_bytes_bucket
-
django_http_requests_latency_seconds_by_view_method_bucket
-
django_http_requests_latency_including_middlewares_seconds_bucket
-
prometheus_http_requests_total
-
prometheus_http_request_duration_seconds_bucket
-
prometheus_http_response_size_bytes_bucket
- sum(rate(django_http_requests_latency_seconds_by_view_method_bucket[30s])) BY (job, method)
- sum(rate(django_http_responses_body_total_bytes_bucket[30s])) by (job)
This project is licensed under the Apache license.