Skip to content

Commit

Permalink
use readiness_probe.http_get
Browse files Browse the repository at this point in the history
  • Loading branch information
conscious-puppet committed Feb 21, 2024
1 parent 1760bc1 commit 9881117
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nix/grafana/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9881117

Please sign in to comment.