From ac811ddfbd0819212ba03cda6e7c4829c142732d Mon Sep 17 00:00:00 2001 From: Adrian Serrano Date: Wed, 16 Aug 2023 11:44:21 -0600 Subject: [PATCH] Enable v2 publisher Signed-off-by: Marcelo E. Magallon --- cmd/synthetic-monitoring-agent/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/synthetic-monitoring-agent/main.go b/cmd/synthetic-monitoring-agent/main.go index 04ca06c3..c4030775 100644 --- a/cmd/synthetic-monitoring-agent/main.go +++ b/cmd/synthetic-monitoring-agent/main.go @@ -28,6 +28,7 @@ import ( "github.com/grafana/synthetic-monitoring-agent/internal/k6runner" "github.com/grafana/synthetic-monitoring-agent/internal/pusher" pusherV1 "github.com/grafana/synthetic-monitoring-agent/internal/pusher/v1" + pusherV2 "github.com/grafana/synthetic-monitoring-agent/internal/pusher/v2" "github.com/grafana/synthetic-monitoring-agent/internal/version" "github.com/grafana/synthetic-monitoring-agent/pkg/pb/synthetic_monitoring" ) @@ -211,6 +212,7 @@ func run(args []string, stdout io.Writer) error { pusherRegistry := pusher.NewRegistry[pusher.Factory]() pusherRegistry.MustRegister(pusherV1.Name, pusherV1.NewPublisher) + pusherRegistry.MustRegister(pusherV2.Name, pusherV2.NewPublisher) publisherFactory, err := pusherRegistry.Lookup(*selectedPublisher) if err != nil {