feat: add Prometheus metrics endpoint for Redis & API latency

Aperta
#16 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
fastapi, grafana, python, redis

Direzione di ricerca

Start with eddy/api.py to see how the FastAPI app is built, then find where online_store.get_features is called so you know what to time. Add prometheus-client to requirements.txt, expose a /metrics route, and wrap the feature lookup with a duration histogram. Done when /metrics returns request count, latency and Redis lookup metrics after a sample request. The issue does not name a test file, so check the existing test setup before adding one.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature good first issue
🎯 Feature Proposal

Expose standard Prometheus metrics at /metrics\ (such as request count, p99 latency histograms, and Redis lookup duration) to make the feature store production-monitored.

💡 Why this is valuable

In production ML systems, MLOps engineers need Prometheus metrics hooked into Grafana dashboards to monitor latency SLAs.

📍 Where to look
  • \eddy/api.py\

  • equirements.txt\ (e.g., \prometheus-client\ or \starlette-exporter)
🛠️ Suggested Steps
  1. Add \prometheus-client\ to dependencies.
  2. Expose the /metrics\ endpoint in FastAPI.
  3. Track duration of \online_store.get_features.
Lingua principale
Python
Stelle
2
Fork
4
Merge medio
6h 43m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di midhunsomu/Feature_Store

Tutte le issue di midhunsomu/Feature_Store

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.