From 6df0d7bea45d494ae328837a40502f3b2a3d23b9 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 18 Oct 2021 10:11:44 -0500 Subject: [PATCH] r/gitea: Enable Prometheus metrics Gitea provides a Prometheus-compatible metrics endpoint at `/metrics`, but it is disabled by default. --- roles/gitea/templates/app.ini.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/gitea/templates/app.ini.j2 b/roles/gitea/templates/app.ini.j2 index d1bdfa6..e23972d 100644 --- a/roles/gitea/templates/app.ini.j2 +++ b/roles/gitea/templates/app.ini.j2 @@ -64,3 +64,6 @@ ROOT_PATH = /var/log/gitea [oauth2] JWT_SECRET = {{ gitea_oauth2_jwt_secret }} + +[metrics] +ENABLED = true