Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Lunik/gitea_prometheus_exporter
Prometheus exporter for Gitea repositories metrics
https://github.com/Lunik/gitea_prometheus_exporter
gitea prometheus python
Last synced: about 2 months ago
JSON representation
Prometheus exporter for Gitea repositories metrics
- Host: GitHub
- URL: https://github.com/Lunik/gitea_prometheus_exporter
- Owner: Lunik
- License: mit
- Created: 2021-02-26T22:16:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T18:09:34.000Z (over 3 years ago)
- Last Synced: 2024-02-14T21:16:54.703Z (10 months ago)
- Topics: gitea, prometheus, python
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prometheus export for Gitea
## What does it do ?
Export repositories metrics with prometheus format.
### Metrics exported
| Metric | Labels | Type |
|:-------------------|:----------------------------------------|:------|
| user | ['username', 'full_name'] | Gauge |
| org | ['username', 'full_name', 'visibility'] | Gauge |
| repo | ['name', 'owner'] | Gauge |
| repo_size | ['name', 'owner', 'unit'] | Gauge |
| repo_empty | ['name', 'owner'] | Gauge |
| repo_archived | ['name', 'owner'] | Gauge |
| repo_stars | ['name', 'owner'] | Gauge |
| repo_commits | ['name', 'owner'] | Gauge |
| repo_branches | ['name', 'owner'] | Gauge |
| repo_forks | ['name', 'owner'] | Gauge |
| repo_issues | ['name', 'owner'] | Gauge |
| repo_pull_requests | ['name', 'owner'] | Gauge |## Build it
```shell
$ docker build -t gitea-exporter:latest .
```## Run it
Take a look at the [Docker compose file](docker-compose.yml)
## Sources
[Gitea](https://github.com/go-gitea/gitea)
Thanks to [Langenfeld/py-gitea](https://github.com/Langenfeld/py-gitea)
## Disclaimer
This software was built by me, for my usages. It may not work "as it is" in your setup.