about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-13 18:14:31 -0700
committerFranck Cuny <franck@fcuny.net>2022-03-13 18:14:31 -0700
commit691c9d61e991006b12a858f66be2e61220702b1b (patch)
tree8f1a4e56b53fd3faa2983f01aa4d7f05b5156081
parentgitea: enable metrics endpoint (diff)
downloadworld-691c9d61e991006b12a858f66be2e61220702b1b.tar.gz
prometheus: scrape gitea metrics
-rw-r--r--hosts/common/server/prometheus.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/hosts/common/server/prometheus.nix b/hosts/common/server/prometheus.nix
index 00a7eba..401dd2b 100644
--- a/hosts/common/server/prometheus.nix
+++ b/hosts/common/server/prometheus.nix
@@ -56,6 +56,12 @@ in {
         relabel_configs = relabelConfigs;
       }
       {
+        job_name = "gitea";
+        static_configs = [{ targets = [ "192.168.6.20:8002" ]; }];
+        relabel_configs = relabelConfigs;
+      }
+
+      {
         job_name = "dnsd";
         static_configs = [{ targets = [ "192.168.6.1:8053" ]; }];
         relabel_configs = relabelConfigs;