Skip to content

Add Prometheus metrics endpoint and backend instrumentation#14

Merged
sleroq merged 2 commits intomasterfrom
feat/prometheus-metrics-export
Mar 8, 2026
Merged

Add Prometheus metrics endpoint and backend instrumentation#14
sleroq merged 2 commits intomasterfrom
feat/prometheus-metrics-export

Conversation

@sleroq
Copy link
Copy Markdown
Owner

@sleroq sleroq commented Mar 8, 2026

Summary

  • add an in-process Prometheus registry in lib/app/metrics.ts with counters, gauges, histograms, and text exposition
  • expose GET /metrics in the web server and instrument HTTP request totals/duration using low-cardinality route templates
  • instrument Telegram update/error paths, AI generation flows (chat/notes/memory/character), usage-window events, and rate-limit exceed callbacks

Validation

  • deno check --allow-import main.ts
  • deno lint
  • AI_TOKEN=\"test\" deno test -A
  • scripts/build.bash

@sleroq sleroq merged commit 9b08b2b into master Mar 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant