Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: release.NAME, Short: "Circonus Host Agent", Long: `The Circonus host agent daemon provides a simple mechanism to expose systems and application metrics to Circonus. It inventories all executable programs in its plugin directory and executes them upon external request, returning results in JSON format.`, PreRunE: bootstrap, Run: func(cmd *cobra.Command, args []string) { if err := plugins.Initialize(); err != nil { log.Fatal().Err(err).Msg("Initializing plugins") return } ec := make(chan error) go func() { err := statsd.Start() if err != nil { ec <- errors.Wrap(err, "Starting StatsD listener") } }() go func() { err := reverse.Start() if err != nil { ec <- errors.Wrap(err, "Unable to start reverse connection") } }() go func() { err := server.Start() if err != nil { ec <- errors.Wrap(err, "Starting server") } }() log.Fatal().Err(<-ec).Msg("Startup") return }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.