Application metrics of the API
Maintainers usually reply within 7 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend-api-design, observability-sre
Research direction
Start by locating the API's existing Prometheus export and the PROMETHEUS_ENABLED setting, then read roadmap issue #25 and scenarios 10 and 11 to identify the required alerts. Configure Alloy to collect the selected error, duration, validation queue, and fail-open metrics. Done means the metrics are visible in Grafana and both alerts exist.
Written by the indexing model from the issue text.
Description
Context & Objective
Part of the epic pyronear/roadmap#25 (Monitoring and alerting). The API has a Prometheus export, disabled today (PROMETHEUS_ENABLED=false). It would give the error rate, the request durations and the state of the validation queue.
What has to be done
- Enable the export and choose the metrics: errors, durations, validation queue, sequences validated by fail-open (temporal model unreachable).
- Collect them with Alloy and add the alerts of scenarios 10 and 11.
Done when
- The metrics are visible in Grafana, and the two alerts exist
- Dominant language
- Python
- Stars
- 31
- Forks
- 15
- Avg merge
- 7d 18h
- Merged PRs (30d)
- 17
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pyronear/pyro-api
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 7 days
-
endpoint: detections type: fix
Difficulty 4/5 1-2 days Newbie friendliness 68/100
Maintainers usually reply within 7 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 7 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 7 days
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
Maintainers usually reply within 7 days
All issues in pyronear/pyro-api
Similar issues
-
area: ci enhancement perceived difficulty: 1
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
vllm-project/vllm-sail#398 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DiamondLightSource/sm-bluesky#476 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100