1
0
mirror of https://github.com/Lunik/gitea_prometheus_exporter.git synced 2025-04-16 23:43:05 +03:00
Lunik 758c247284
fix
Signed-off-by: Lunik <lunik@tiwabbit.fr>
2021-03-29 20:09:13 +02:00
2021-03-29 19:58:07 +02:00
2021-03-29 19:58:07 +02:00
2021-01-23 18:59:17 +01:00
2021-01-14 22:11:04 +01:00
2021-02-26 23:14:20 +01:00
fix
2021-03-29 20:09:13 +02:00
2021-02-26 23:31:28 +01:00
2021-01-14 22:11:04 +01:00
2021-02-26 23:14:20 +01:00
2021-03-29 19:58:07 +02:00

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

$ docker build -t gitea-exporter:latest .

Run it

Take a look at the Docker compose file

Sources

Gitea

Thanks to Langenfeld/py-gitea

Disclaimer

This software was built by me, for my usages. It may not work "as it is" in your setup.

Description
Languages
Python 97.9%
Dockerfile 2.1%