From 746f60a3df9b9f0c762421599008642718cd096d Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Wed, 25 Oct 2023 11:18:20 -0400 Subject: [PATCH 1/2] add fly launch-generated toml --- logs/fly.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 logs/fly.toml diff --git a/logs/fly.toml b/logs/fly.toml new file mode 100644 index 0000000..3e8036f --- /dev/null +++ b/logs/fly.toml @@ -0,0 +1,18 @@ +# fly.toml app configuration file generated for burd-infra-logs-shipper on 2023-10-25T11:17:02-04:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = "burd-infra-logs-shipper" +primary_region = "bos" + +[build] + image = "ghcr.io/superfly/fly-log-shipper:latest" + +[http_service] + internal_port = 8080 + force_https = true + auto_stop_machines = true + auto_start_machines = true + min_machines_running = 0 + processes = ["app"] From 157a3eaa7322d58d42c8c35da36234eea831634f Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Wed, 25 Oct 2023 11:21:18 -0400 Subject: [PATCH 2/2] Updated toml according to article, and some notes. --- logs/README.md | 14 ++++++++++++++ logs/fly.toml | 10 +++------- 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 logs/README.md diff --git a/logs/README.md b/logs/README.md new file mode 100644 index 0000000..ed6a75e --- /dev/null +++ b/logs/README.md @@ -0,0 +1,14 @@ +# Create the app but don't deploy just yet +fly launch --no-deploy --image ghcr.io/superfly/fly-log-shipper:latest + +# Set some secrets. The secret / env var you set +# determines which "sinks" are configured +fly secrets set ORG=personal +fly secrets set ACCESS_TOKEN=$(fly auth token) +fly secrets set BETTER_STACK_SOURCE_TOKEN= + + + +https://fly.io/docs/going-to-production/monitoring/exporting-logs/#the-fly-log-shipper +https://github.com/superfly/fly-log-shipper +https://uptime.betterstack.com/team/163632/integrations/apis diff --git a/logs/fly.toml b/logs/fly.toml index 3e8036f..c0fe4f6 100644 --- a/logs/fly.toml +++ b/logs/fly.toml @@ -9,10 +9,6 @@ primary_region = "bos" [build] image = "ghcr.io/superfly/fly-log-shipper:latest" -[http_service] - internal_port = 8080 - force_https = true - auto_stop_machines = true - auto_start_machines = true - min_machines_running = 0 - processes = ["app"] +[[services]] + http_checks = [] + internal_port = 8686