Skip to content

mariano-tp/github-observability-demo

CI: compose-validate CI: link-check last commit release license: MIT stars

GitHub Observability Demo

Observability demo for GitHub metrics using Prometheus + Grafana + github-exporter.
Designed to showcase observability practices and CI in GitHub Actions, without needing to install anything locally.

Based on community work (github-monitoring). This fork is used for educational purposes.

What’s included?

  • Prometheus scrapes metrics from the GitHub exporter.
  • Grafana with a dashboard for statistics (stars, forks, issues) of sample repos.
  • CI: workflow compose-validate validates docker-compose.yml on each push/PR.

Structure

.
├─ grafana/          # dashboards and provisioning
├─ prometheus/       # Prometheus configuration
├─ images/           # screenshots used in this README
├─ docker-compose.yml
└─ config.monitoring # example variables (REPOS, etc.)

How it runs (optional)

Running locally is not required to review the code or CI.
If someone wants to execute it locally with Docker Compose:

  1. Create a GitHub Personal Access Token (PAT) with public_repo scope (or repo if private).
  2. Define environment variables:
    • REPOS (comma-separated, e.g. freeCodeCamp/freeCodeCamp,docker/docker)
    • GITHUB_TOKEN (your PAT)
  3. Launch:
docker compose up -d
  • Grafana: http://localhost:3000 (user admin, password defined in config.monitoring)
  • Prometheus: http://localhost:9090

Screenshots

Dashboard
Dashboard

GitHub Token (PAT)
PAT

Datasource in Grafana
Datasource

Import dashboard
Import

CI (GitHub Actions)

This repository automatically runs:

  • docker compose -f docker-compose.yml config → validates syntax and references.

Credits

Original stack from the community (github-monitoring) + presentation and CI adjustments by @mariano-tp.

See also: Code of Conduct · Contributing · Security

About

Prometheus + Grafana + exporter for GitHub metrics. CI with GitHub Actions.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published