{"id":15199897,"url":"https://github.com/metrixio/github-public","last_synced_at":"2026-02-03T14:31:33.162Z","repository":{"id":65126611,"uuid":"581796989","full_name":"metrixio/github-public","owner":"metrixio","description":"This tool helps developers see how popular their code is and how it's being used. It works with Prometheus and Grafana to gather data from Github and create cool visualizations. You can use Grafana to filter and customize the metrics you collect. We hope you find it helpful!","archived":false,"fork":false,"pushed_at":"2022-12-26T22:04:26.000Z","size":1533,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T18:44:27.028Z","etag":null,"topics":["docker-image","github","grafana-dashboard","metrics-collector","php81","prometheus-metrics","roadrunner","spiral-framework"],"latest_commit_sha":null,"homepage":"https://dashboard.metrixio.dev/","language":"PHP","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/metrixio.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":null,"security":null,"support":null}},"created_at":"2022-12-24T11:20:07.000Z","updated_at":"2022-12-28T08:29:59.000Z","dependencies_parsed_at":"2023-01-03T09:19:02.587Z","dependency_job_id":null,"html_url":"https://github.com/metrixio/github-public","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/metrixio/github-public","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrixio%2Fgithub-public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrixio%2Fgithub-public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrixio%2Fgithub-public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrixio%2Fgithub-public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metrixio","download_url":"https://codeload.github.com/metrixio/github-public/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrixio%2Fgithub-public/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker-image","github","grafana-dashboard","metrics-collector","php81","prometheus-metrics","roadrunner","spiral-framework"],"created_at":"2024-09-28T02:20:37.660Z","updated_at":"2026-02-03T14:31:33.144Z","avatar_url":"https://github.com/metrixio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github public metrics collector\n\n\u003ca href=\"https://packagist.org/packages/metrixio/github-public\"\u003e\u003cimg src=\"https://poser.pugx.org/metrixio/github-public/require/php\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/metrixio/github-public\"\u003e\u003cimg src=\"https://poser.pugx.org/metrixio/github-public/version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/metrixio/github-public/actions\"\u003e\u003cimg src=\"https://github.com/metrixio/twitter/github-public/workflows/docker-image.yml/badge.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/metrixio/github-public\"\u003e\u003cimg src=\"https://poser.pugx.org/metrixio/github-public/downloads\"\u003e\u003c/a\u003e\n\n![github](https://user-images.githubusercontent.com/773481/209463759-1a359047-3263-454b-b8ae-3444b5102bc8.png)\n\nThis tool helps developers see how popular their code is and how it's being used.\n\nIt works with Prometheus and Grafana to collect data from Github, store it in Prometheus, and create visualizations with Grafana. You can use Grafana to customize the data you collect and create dashboards that fit your needs.\n\n## Dashboard\n\n![image](https://user-images.githubusercontent.com/773481/209463810-43f33164-0be3-42f2-97e8-7c6b6d0a226c.png)\n\n## Usage\n\nTo get started with this package, you'll need to create a Github API token. Once you have that, you can start collecting metrics data.\n\n```dotenv\n# Gitgub API token\nGITHUB_TOKEN=\n\n# Github repositories to follow (comma separated)\nGITHUB_REPOSITORIES=\n```\n\n### Docker\n\n```yaml\nversion: \"3.7\"\n\nservices:\n    twitter-metrics:\n        image: ghcr.io/metrixio/github-public:latest\n        environment:\n            GITHUB_TOKEN: ...\n            GITHUB_REPOSITORIES: ...\n        restart: on-failure\n\n    prometheus:\n        image: prom/prometheus\n        volumes:\n            - ./runtime/prometheus:/prometheus\n        restart: always\n\n    grafana:\n        image: grafana/grafana\n        depends_on:\n            - prometheus\n        ports:\n            - 3000:3000\n        volumes:\n            - ./runtime/grafana:/var/lib/grafana\n        restart: always\n```\n\n### Local server\n\n```bash\ncomposer create-project metrixio/github-public\n```\n\nDefine the repositories you want to track in `.env` file\n\n```dotenv\n# Gitgub API token\nGITHUB_TOKEN=xxx\n\n# Github repositories to follow (comma separated)\nGITHUB_REPOSITORIES=spiral/framework,...\n```\n\nOnce the project is installed and configured you can start application server:\n\n```bash\n./rr serve\n```\n\nMetrics will be available on http://127.0.0.1:2112.\n\n\u003e **Note**:\n\u003e To fix unable to open metrics page, change metrics address in RoadRunner config file to `127.0.0.1:2112`.\n\n\n-----\n\nThe package is built with some of the best tools out there for PHP. It's powered by [Spiral Framework](https://github.com/spiral/framework/), which makes it super fast and efficient, and it uses [RoadRunner](https://github.com/roadrunner-server/roadrunner) as the server, which is a really great tool for collecting metrics data for Prometheus.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrixio%2Fgithub-public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetrixio%2Fgithub-public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrixio%2Fgithub-public/lists"}