// Command grafana-agent-flow is an Flow mode-only binary. It acts as an1// alternative to grafana-agent in environments where users want to run Flow2// mode alongside static mode and control versions separately.3//4// Use grafana-agent instead for a binary which can switch between static mode5// and Flow mode at runtime.6package main78import (9"github.com/grafana/agent/cmd/internal/flowmode"10"github.com/grafana/agent/pkg/build"11"github.com/prometheus/client_golang/prometheus"1213// Register Prometheus SD components14_ "github.com/grafana/loki/clients/pkg/promtail/discovery/consulagent"15_ "github.com/prometheus/prometheus/discovery/install"1617// Register integrations18_ "github.com/grafana/agent/pkg/integrations/install"19)2021func init() {22prometheus.MustRegister(build.NewCollector("agent"))23}2425func main() {26flowmode.Run()27}282930