{"id":16055114,"url":"https://github.com/lunik/gitea_prometheus_exporter","last_synced_at":"2025-04-05T08:12:49.762Z","repository":{"id":95465983,"uuid":"342714942","full_name":"Lunik/gitea_prometheus_exporter","owner":"Lunik","description":"Prometheus exporter for Gitea repositories metrics","archived":false,"fork":false,"pushed_at":"2021-03-29T18:09:34.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T12:50:16.038Z","etag":null,"topics":["gitea","prometheus","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Lunik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-26T22:16:46.000Z","updated_at":"2025-03-06T16:13:56.000Z","dependencies_parsed_at":"2023-07-07T14:32:20.992Z","dependency_job_id":null,"html_url":"https://github.com/Lunik/gitea_prometheus_exporter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lunik%2Fgitea_prometheus_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lunik%2Fgitea_prometheus_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lunik%2Fgitea_prometheus_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lunik%2Fgitea_prometheus_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lunik","download_url":"https://codeload.github.com/Lunik/gitea_prometheus_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305945,"owners_count":20917208,"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","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":["gitea","prometheus","python"],"created_at":"2024-10-09T02:06:10.473Z","updated_at":"2025-04-05T08:12:49.737Z","avatar_url":"https://github.com/Lunik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus export for Gitea\n\n## What does it do ?\n\nExport repositories metrics with prometheus format.\n\n### Metrics exported\n\n| Metric             | Labels                                  | Type  |\n|:-------------------|:----------------------------------------|:------|\n| user               | ['username', 'full_name']               | Gauge |\n| org                | ['username', 'full_name', 'visibility'] | Gauge |\n| repo               | ['name', 'owner']                       | Gauge |\n| repo_size          | ['name', 'owner', 'unit']               | Gauge |\n| repo_empty         | ['name', 'owner']                       | Gauge |\n| repo_archived      | ['name', 'owner']                       | Gauge |\n| repo_stars         | ['name', 'owner']                       | Gauge |\n| repo_commits       | ['name', 'owner']                       | Gauge |\n| repo_branches      | ['name', 'owner']                       | Gauge |\n| repo_forks         | ['name', 'owner']                       | Gauge |\n| repo_issues        | ['name', 'owner']                       | Gauge |\n| repo_pull_requests | ['name', 'owner']                       | Gauge |\n\n## Build it\n\n```shell\n$ docker build -t gitea-exporter:latest .\n```\n\n## Run it\n\nTake a look at the [Docker compose file](docker-compose.yml)\n\n## Sources\n\n[Gitea](https://github.com/go-gitea/gitea)\n\nThanks to [Langenfeld/py-gitea](https://github.com/Langenfeld/py-gitea)\n\n## Disclaimer\n\nThis software was built by me, for my usages. It may not work \"as it is\" in your setup.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunik%2Fgitea_prometheus_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunik%2Fgitea_prometheus_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunik%2Fgitea_prometheus_exporter/lists"}