Skip to content

Commit

Permalink
Enable v2 publisher
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
  • Loading branch information
adriansr authored and mem committed Aug 31, 2023
1 parent 294a7e5 commit ac811dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/synthetic-monitoring-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ac811dd

Please sign in to comment.