This repo contains a Grafana dashboard that can be used to monitor and visualize GitHub Server Stats metrics.
In order to use this dashboard in Grafana, you need to add as a data source a Prometheus server that is scraping the metrics exported by the GitHub Server Stats Prometheus Exporter Action and being sent to a Prometheus Pushgateway. The dashboard will show no data if the metrics haven't been collected yet.
The github-server-stats.json contains the Grafana dashboard. You can import this dashboard into an existing Grafana instance using the Import Dashboard feature.
If you don't have an existing Grafana / Prometheus / Pushgateway setup, you can use clone this repo and use it to stand one up in Docker Compose or Kubernetes, preloaded with the dashboard and Prometheus data sources.
docker compose -f docker-compose.yml up -d
Then open up a browser and go to http://localhost:3000/ to open the Grafana UI and use the dashboards.
- Create ConfigMaps
kubectl create configmap grafana-provisioning-datasources --from-file=./grafana/etc/grafana/provisioning/datasources -o yaml
kubectl create configmap grafana-provisioning-dashboards --from-file=./grafana/etc/grafana/provisioning/dashboards -o yaml
kubectl create configmap grafana-dashboards --from-file=./grafana/dashboards -o yaml
kubectl create configmap prometheus --from-file=./prometheus -o yaml
- Create Pods and Services
cat ./kubernetes/*.yml | kubectl apply -f -
- Access Grafana UI
kubectl port-forward svc/grafana 3000:3000
You can access the Grafana UI at http://localhost:3000/ to use the dashboards.