diff --git a/services/grafana/prometheus.nix b/services/grafana/prometheus.nix index e9835d5..2939ec9 100644 --- a/services/grafana/prometheus.nix +++ b/services/grafana/prometheus.nix @@ -65,6 +65,12 @@ in { targets = [ "127.0.0.1:${toString service_configs.ports.private.prometheus_apcupsd.port}" ]; } ]; } + { + job_name = "llama-cpp"; + static_configs = [ + { targets = [ "127.0.0.1:${toString service_configs.ports.private.llama_cpp.port}" ]; } + ]; + } ]; }; diff --git a/services/llama-cpp/llama-cpp.nix b/services/llama-cpp/llama-cpp.nix index b126198..4f3800b 100644 --- a/services/llama-cpp/llama-cpp.nix +++ b/services/llama-cpp/llama-cpp.nix @@ -35,6 +35,7 @@ in "on" "--api-key-file" config.age.secrets.llama-cpp-api-key.path + "--metrics" ]; };