- Python Pika RabbitMQ 6 Implementation mode
- Docker Compose for RabbitMQ
- Deal with Threading Conflict in Django
- Execute RabbitMQ Listener When App Start
docker exec -it <RabbitMQ ContainerID Or Container Name> rabbitmq-plugins enable rabbitmq_mqtt
docker exec -it <RabbitMQ ContainerID Or Container Name> rabbitmq-plugins enable rabbitmq_web_mqtt
docker exec -it <RabbitMQ ContainerID Or Container Name> rabbitmq-plugins enable rabbitmq_web_stomp
docker exec <RabbitMQ ContainerID Or Container Name> rabbitmq-plugins enable rabbitmq_management
docker exec <RabbitMQ ContainerID Or Container Name> rabbitmq-plugins list
Test Info
Celery -A PetMonitoringSystemBackend worker -l info
- Django Logstash push logging to Kibana
- Python Logger
- Python Logging Handler
- Python Logger Produce Log File
pipenv install django-graphene
pipenv install django-prometheus
INSTALLED_APPS = [
'django_prometheus',
]
MIDDLEWARE= [
]
MIDDLEWARE.insert(0, 'django_prometheus.middleware.PrometheusBeforeMiddleware')
MIDDLEWARE += [
'django_prometheus.middleware.PrometheusAfterMiddleware',
]
# PetMonitoringSystemBackend/urls.py
from django.urls import path, include
from django_prometheus import urls as prometheus_urls
urlpatterns = [
path('metrics/', include(prometheus_urls))
]
pipenv install django-forestadmin
INSTALLED_APPS = [
"django_forest"
]
# PetMonitoringSystemBackend/urls.py
from django.urls import path, include
urlpatterns = [
path('forest/', include('django_forest.urls')),
]
# PetMonitoringSystemBackend/wsgi.py
from django_forest import init_forest
init_forest()
Note: FCM V1 not support post request directly should pass OAuth 2.0 Authentication