From 98811170929b85415a9e2c42b0e03a0f402435fd Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Thu, 22 Feb 2024 02:16:30 +0530 Subject: [PATCH] use `readiness_probe.http_get` --- nix/grafana/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nix/grafana/default.nix b/nix/grafana/default.nix index 2a188e3f..a27b5ee8 100644 --- a/nix/grafana/default.nix +++ b/nix/grafana/default.nix @@ -82,7 +82,12 @@ in { command = startScript; readiness_probe = { - exec.command = "${pkgs.curl}/bin/curl -f ${config.root_url}/api/health"; + http_get = { + host = config.domain; + scheme = config.protocol; + port = config.http_port; + path = "/api/health"; + }; initial_delay_seconds = 15; period_seconds = 10; timeout_seconds = 2;