1
0
mirror of https://github.com/Lunik/gitea_prometheus_exporter.git synced 2025-04-18 11:04:02 +03:00
gitea_exporter/prometheus-exporter.py
2021-01-14 22:11:04 +01:00

19 lines
223 B
Python

#!/usr/bin/env python3
import os
from api import App
def setup():
app = App(config_file=os.path.join(os.getcwd(), 'config.yml'))
app.setup()
return app
if __name__ == "__main__":
app = setup()
app.start()