From 4b16dea34e77a393e9026a5ec512dc5ec5501250 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 23 Jan 2024 12:26:10 -0800 Subject: [PATCH] Log when attempting to push metrics to gateway --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index a50feff..a9d17e4 100644 --- a/main.go +++ b/main.go @@ -258,6 +258,8 @@ func runSpecifiedJobs(jobs []Job, backupJobs, restoreJobs, unlockJobs, snapshot func maybePushMetrics(metricsPushGateway string) error { if metricsPushGateway != "" { + fmt.Println("Pushing metrics to push gateway") + if err := Metrics.PushToGateway(metricsPushGateway); err != nil { return fmt.Errorf("Failed pushing metrics after jobs run: %w", err) }