From efe87fb23c6dba5ccd6a14f52d375a39b2d217f4 Mon Sep 17 00:00:00 2001 From: Roland <33993199+rolznz@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:34:22 +0700 Subject: [PATCH] fix: add health check to exporting logs documentation --- monitoring/exporting-logs.html.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/monitoring/exporting-logs.html.md b/monitoring/exporting-logs.html.md index 6c0b9b56d8..c4b661abd9 100644 --- a/monitoring/exporting-logs.html.md +++ b/monitoring/exporting-logs.html.md @@ -49,9 +49,17 @@ You can configure as many providers as you'd like by adding more secrets. The se Before launching your application, you should edit the generated `fly.toml` file and delete the entire `[[services]]` section. Replace it with this: ```toml -[[services]] - http_checks = [] +[http_service] internal_port = 8686 + auto_start_machines = true + auto_stop_machines = "off" + + [[http_service.checks]] + grace_period = "10s" + interval = "30s" + method = "GET" + path = "/health" + timeout = "5s" ``` Then you can deploy it: