django / django/daphne

Runtime Metrics API

Open
#118 24 comments 17 reactions 0 assignees View on GitHub
enhancement exp/intermediate
Dominant language
Python
Stars
2.7k
Forks
292
Avg merge
2d 15h
Merged PRs (30d)
3

Description

It would be nice if Daphne could provide an api for runtime metrics for things like messages/active connections.

I imagine this could be built from 2 api's, one providing a basic http api we could hit and get the current active number of connections (in our case websocket) for that daphne instance.

Secondly a plugin/interface we could hook into to emit runtime events, we'd like to emit statsd events for connections opened/messages sent/closed etc, but I would imagine there are other metric systems people would use, so a generic stats interface / plugin system would be better than embedding statsd into daphne directly.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Begin by mapping Daphne's HTTP and WebSocket server entry points and checking whether runtime events or extension interfaces already exist; then define the API and plugin boundaries, supported events, and tests needed to show that connection and message metrics are exposed without embedding StatsD.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend, observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.