From d47fecb2301f1fd7dd4323abf5e44fe2e9d686a9 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 21 Feb 2024 08:34:59 +0000 Subject: [PATCH] Add prometheus scraper for minecraft exporter --- services/grafana.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/grafana.nix b/services/grafana.nix index 27e208a2..df235b1b 100644 --- a/services/grafana.nix +++ b/services/grafana.nix @@ -25,6 +25,10 @@ job_name = "legion"; static_configs = [{targets = ["127.0.0.1:${toString exporters.node.port}"];}]; } + { + job_name = "minecraft"; + static_configs = [{targets = ["127.0.0.1:8000"];}]; + } ]; }; services.caddy.virtualHosts."grafana.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:3000";