Add metrics support and health checks #2

Closed
opened 2026-03-11 14:10:09 +00:00 by salmaelsoly · 1 comment
Member
No description provided.
thabeta added this to the ACTIVE project 2026-03-12 10:52:42 +00:00
Author
Member

work completed:

  • Prometheus metrics integration — added src/metrics.rs with request count, request duration histogram, lookup error count, and lookup source tracking using prometheus-client
  • Metrics middleware — every request is tracked for status code and duration via track_requests middleware
  • /metrics endpoint — exposes all metrics in OpenMetrics text format for Prometheus scraping
  • /health endpoint — simple health check that returns 200 OK
  • Grafana integration — added pre-configured Grafana dashboard (grafana/dashboards/geoip.json) with datasource and dashboard provisioning
  • Docker Compose — added docker-compose.yml to run geoip, Prometheus, and Grafana together
### work completed: - Prometheus metrics integration — added src/metrics.rs with request count, request duration histogram, lookup error count, and lookup source tracking using prometheus-client - Metrics middleware — every request is tracked for status code and duration via track_requests middleware - /metrics endpoint — exposes all metrics in OpenMetrics text format for Prometheus scraping - /health endpoint — simple health check that returns 200 OK - Grafana integration — added pre-configured Grafana dashboard (grafana/dashboards/geoip.json) with datasource and dashboard provisioning - Docker Compose — added docker-compose.yml to run geoip, Prometheus, and Grafana together
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/geoip#2
No description provided.