From feb035f3b47243f4c1cbfd77cd0b9cfcf5637892 Mon Sep 17 00:00:00 2001 From: xunuwu Date: Fri, 8 Aug 2025 23:18:21 +0200 Subject: [PATCH] prometheus metrics for garage --- hosts/hopper/profiles/lab/garage.nix | 2 ++ hosts/hopper/profiles/lab/prometheus.nix | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/hosts/hopper/profiles/lab/garage.nix b/hosts/hopper/profiles/lab/garage.nix index 96a65e4..64d76cd 100644 --- a/hosts/hopper/profiles/lab/garage.nix +++ b/hosts/hopper/profiles/lab/garage.nix @@ -23,6 +23,8 @@ bind_addr = "/run/garage/web.sock"; root_domain = ".s3-web.hopper.priv.${vars.domain}"; }; + + admin.api_bind_addr = "127.0.0.1:3903"; }; }; diff --git a/hosts/hopper/profiles/lab/prometheus.nix b/hosts/hopper/profiles/lab/prometheus.nix index 315548a..536c99f 100644 --- a/hosts/hopper/profiles/lab/prometheus.nix +++ b/hosts/hopper/profiles/lab/prometheus.nix @@ -112,6 +112,13 @@ targets = ["rackserv:9615"]; }; } + + { + job_name = "garage"; + static_configs = lib.singleton { + targets = ["localhost:3903"]; + }; + } ]; exporters = { node = {