You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Prometheus metrics endpoint and Grafana dashboard - #17
7-panel dashboard covering rate timeseries for aircraft spotted and notifications by channel, plus stat panels for all four counters. Datasource is templated so it works across Grafana instances.
Docker Compose
docker compose up brings up all three services — gee-bee (:9090), Prometheus (:9091), and Grafana (:3000) — with the dashboard and datasource auto-provisioned.
Closing as no longer compatible with the project direction. The July 3 refactor ("Convert gee-bee to a one-shot binary scheduled by cron/systemd") moved gee-bee to a one-shot binary with no internal loop, and explicitly dropped Docker ("No Docker... Docker adds path, permission, and user complexity that the Go binary approach eliminates entirely" — see AGENTS.md). This PR adds a long-running :9090 metrics HTTP server and a Docker Compose stack (Prometheus + Grafana), both of which conflict with that architecture, and it now has git conflicts against main in Dockerfile (deleted upstream), README.md, and cmd/geebee/main.go. If metrics are wanted later, they'd need to fit the one-shot/no-Docker model (e.g. a Pushgateway or per-run stdout metric rather than a persistent scrape endpoint).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds observability to Gee Bee via a Prometheus metrics endpoint and a pre-built, auto-provisioned Grafana dashboard.
Metrics (
internal/metrics/metrics.go)Four counters registered via
promautoand served athttp://0.0.0.0:<port>/metrics:geebee_aircraft_spotted_totaltail_numbergeebee_api_calls_totalgeebee_api_errors_totalgeebee_notifications_sent_totalchanneldiscord,slack,custom_url,terminal)Port defaults to
9090, configurable viaMETRICS_PORTenv var ormetricsPortin config.Grafana Dashboard (
grafana/provisioning/dashboards/gee-bee.json)7-panel dashboard covering rate timeseries for aircraft spotted and notifications by channel, plus stat panels for all four counters. Datasource is templated so it works across Grafana instances.
Docker Compose
docker compose upbrings up all three services — gee-bee (:9090), Prometheus (:9091), and Grafana (:3000) — with the dashboard and datasource auto-provisioned.