Skip to content

Add per-server metrics and a Prometheus endpoint - #6

Merged
Deep-Axe merged 1 commit into
mainfrom
feat/observability-metrics
Oct 26, 2026
Merged

Deep-Axe merged 1 commit into
mainfrom
feat/observability-metrics

Conversation

@Deep-Axe

Copy link
Copy Markdown
Owner

Derive tool-call metrics from the audit log with one aggregation query shared by PostgreSQL and SQLite: outcome counts per upstream and a fixed latency histogram from 5 ms to 15 s.

The gateway serves Prometheus metrics on a separate in-cluster port (gateway.metrics.port, default 9464) that the Ingress does not route: call counters by outcome, a latency histogram, and upstream up, status and last-failure gauges. The pod carries prometheus.io scrape annotations.

Administrators see each server's calls, error rate and average and p95 latency for the last 24 hours on its Connections card and at GET /api/metrics?hours=<1-168>. Members do not receive team-wide metrics.

Derive tool-call metrics from the audit log with one aggregation query shared
by PostgreSQL and SQLite: outcome counts per upstream and a fixed latency
histogram from 5 ms to 15 s.

The gateway serves Prometheus metrics on a separate in-cluster port
(gateway.metrics.port, default 9464) that the Ingress does not route:
call counters by outcome, a latency histogram, and upstream up, status and
last-failure gauges. The pod carries prometheus.io scrape annotations.

Administrators see each server's calls, error rate and average and p95
latency for the last 24 hours on its Connections card and at
GET /api/metrics?hours=<1-168>. Members do not receive team-wide metrics.
@Deep-Axe
Deep-Axe merged commit 90d2fb2 into main Oct 26, 2026
2 checks passed
@Deep-Axe
Deep-Axe deleted the feat/observability-metrics branch October 26, 2026 13:51
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