fix: wait for metrics scrape before restarting after switch deployment

After a successful switch deployment, the listener now waits for Prometheus
to scrape the /metrics endpoint before exiting for restart. This ensures
deployment metrics are captured before the process restarts and resets
in-memory counters. Falls back to a 60 second timeout if no scrape occurs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 23:38:26 +01:00
parent 746e30b24f
commit bc02393c5a
3 changed files with 32 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/urfave/cli/v3"
)
const version = "0.1.11"
const version = "0.1.13"
func main() {
app := &cli.Command{