{"id":31284863,"url":"https://github.com/mariano-tp/github-observability-demo","last_synced_at":"2025-09-24T07:34:23.984Z","repository":{"id":311420100,"uuid":"1043642945","full_name":"mariano-tp/github-observability-demo","owner":"mariano-tp","description":"Prometheus + Grafana + exporter para métricas de GitHub. CI con GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-09-09T16:45:53.000Z","size":1432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-09T19:57:05.059Z","etag":null,"topics":["devops","docker-compose","github-actions","grafana","observability","portfolio","prometheus","sre"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariano-tp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-24T10:04:25.000Z","updated_at":"2025-09-09T16:45:56.000Z","dependencies_parsed_at":"2025-08-24T16:36:10.546Z","dependency_job_id":"881dfab8-4e72-4d93-9cf6-ff1e6cd61dd8","html_url":"https://github.com/mariano-tp/github-observability-demo","commit_stats":null,"previous_names":["mariano-tp/github-observability-demo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mariano-tp/github-observability-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariano-tp%2Fgithub-observability-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariano-tp%2Fgithub-observability-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariano-tp%2Fgithub-observability-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariano-tp%2Fgithub-observability-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariano-tp","download_url":"https://codeload.github.com/mariano-tp/github-observability-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariano-tp%2Fgithub-observability-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276713342,"owners_count":25691389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","docker-compose","github-actions","grafana","observability","portfolio","prometheus","sre"],"created_at":"2025-09-24T07:34:22.700Z","updated_at":"2025-09-24T07:34:23.975Z","avatar_url":"https://github.com/mariano-tp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI: compose-validate](https://img.shields.io/github/actions/workflow/status/mariano-tp/github-observability-demo/compose-validate.yml?branch=main\u0026label=compose-validate\u0026style=flat-square)](https://github.com/mariano-tp/github-observability-demo/actions/workflows/compose-validate.yml)\n[![CI: link-check](https://img.shields.io/github/actions/workflow/status/mariano-tp/github-observability-demo/link-check.yml?branch=main\u0026label=link-check\u0026style=flat-square)](https://github.com/mariano-tp/github-observability-demo/actions/workflows/link-check.yml)\n[![last commit](https://img.shields.io/github/last-commit/mariano-tp/github-observability-demo?style=flat-square)](https://github.com/mariano-tp/github-observability-demo/commits/main)\n[![release](https://img.shields.io/github/v/release/mariano-tp/github-observability-demo?display_name=tag\u0026style=flat-square)](https://github.com/mariano-tp/github-observability-demo/releases)\n[![license: MIT](https://img.shields.io/badge/license-MIT-green?style=flat-square)](./LICENSE)\n[![stars](https://img.shields.io/github/stars/mariano-tp/github-observability-demo?style=flat-square)](https://github.com/mariano-tp/github-observability-demo/stargazers)\n\n\n\n# GitHub Observability Demo\n\nDemo de observabilidad para métricas de **GitHub** usando **Prometheus + Grafana + github-exporter**.  \nPensado para mostrar prácticas de **observabilidad** y **CI en GitHub Actions**, sin instalar nada en el PC.\n\n\u003e Basado en trabajo de la comunidad (github-monitoring). Este fork se usa con fines educativos.\n\n## ¿Qué incluye?\n- **Prometheus** scrapea métricas del exporter de GitHub.\n- **Grafana** con dashboard de estadísticas (stars, forks, issues) de repos de ejemplo.\n- **CI**: workflow `compose-validate` que valida `docker-compose.yml` en cada push/PR.\n\n## Estructura\n```\n.\n├─ grafana/          # dashboards y provisión\n├─ prometheus/       # configuración de Prometheus\n├─ images/           # capturas usadas en este README\n├─ docker-compose.yml\n└─ config.monitoring # variables de ejemplo (REPOS, etc.)\n```\n\n## Cómo corre (opcional)\nNo es necesario para revisar el código ni el CI.  \nSi alguien quiere ejecutarlo localmente con Docker Compose:\n\n1. Crear un **Personal Access Token** de GitHub (PAT) con alcance `public_repo` (o `repo` si hay privados).\n2. Definir variables:\n   - `REPOS` (coma-separado, p. ej. `freeCodeCamp/freeCodeCamp,docker/docker`)\n   - `GITHUB_TOKEN` (tu PAT)\n3. Levantar:\n```bash\ndocker compose up -d\n```\n\n- Grafana: `http://localhost:3000` (usuario `admin`, contraseña definida en `config.monitoring`)  \n- Prometheus: `http://localhost:9090`\n\n## Capturas\n**Dashboard**  \n![Dashboard](images/dashboard.png)\n\n**Token de GitHub (PAT)**  \n![PAT](images/github_token.png)\n\n**Datasource en Grafana**  \n![Datasource](images/Grafana_Add_Data_Source.png)\n\n**Importar dashboard**  \n![Import](images/Import_Dashboard.png)\n\n## CI (GitHub Actions)\nEste repositorio ejecuta automáticamente:\n- `docker compose -f docker-compose.yml config` → valida sintaxis y referencias.\n\n## Créditos\n\nStack original de la comunidad (github-monitoring) + ajustes de presentación y CI por @mariano-tp.\n\nVer también: [Código de Conducta](./CODE_OF_CONDUCT.md) · [Contribuir](./CONTRIBUTING.md) · [Seguridad](./SECURITY.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariano-tp%2Fgithub-observability-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariano-tp%2Fgithub-observability-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariano-tp%2Fgithub-observability-demo/lists"}