'how to enable prometheus custom metrics for Django backend process (realtime kafka consumer) and access web endpoint
I have django app for kafka consumer which consumed realtime events and I have added custom prometheus metrics to track consumed events but when my app is running i don't see custom metrics at the web endpoint /metrics. I am getting 504 gateway timeout error because my consumer is running in the background and no response gets send out. I tried with Django health check but its the same issue.
I tried running my consumer using Django custom management command, but then web endpoint didn't work.
So is there a way to run consumer app in background and exposed prometheus metrics and access web endpoint
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
