remove health info

* Sending health about websockets over websockets is not a great idea.
* I tried sending health data via prometheus and encountered problems
that will need PR's to prometheus_client library to solve. Circle back
to this later.
This commit is contained in:
chris meyers
2020-02-14 08:59:52 -05:00
committed by Ryan Petrello
parent 45ce6d794e
commit c06b6306ab
3 changed files with 3 additions and 160 deletions

View File

@@ -122,29 +122,6 @@ class BroadcastConsumer(AsyncJsonWebsocketConsumer):
await self.send(event['text'])
class HealthConsumer(AsyncJsonWebsocketConsumer):
async def connect(self):
try:
WebsocketSecretAuthHelper.is_authorized(self.scope)
except Exception:
await self.close()
return
# TODO: log ip of connected client
logger.info("Client connected to health endpoint")
await self.accept()
async def disconnect(self, code):
# TODO: log ip of disconnected client
logger.info("Client disconnected from health endpoint")
async def receive_json(self, content, **kwargs):
logger.debug(f"Got Health status {content}")
async def internal_message(self, event):
logger.info("Got internal message from health endpoint .. can this happen?")
class EventConsumer(AsyncJsonWebsocketConsumer):
async def connect(self):
user = self.scope['user']