Add Forgejo repository health metrics and Grafana dashboard #245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/forgejo-metrics-dashboard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
forgejo_metricsAnsible role that queries the Forgejo REST API every 60s and writes Prometheus textfile metrics (open PRs, issues, languages, releases, commits, Actions runs/duration/success)forgejo-actions-dashboardplan doc (this implementation covers a broader scope)Deployment and Testing
mise run provision-indri -- --tags forgejo_metricsto deploy the collectorssh indri 'cat /opt/homebrew/var/node_exporter/textfile/forgejo.prom'to verify metricsargocd app sync grafana-configto deploy the dashboardmise run services-checkpasses- Use /repos/{r}/commits (not /git/commits) — correct Forgejo API path - Handle timezone offsets (-08:00) in jq epoch conversion - Use Forgejo field names: workflow_id, created/stopped, duration (ns) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>