Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Version string Branch string Commit string Closed chan struct{} Stdin io.Reader Stdout io.Writer Stderr io.Writer Server *Server Logger *log.Logger // contains filtered or unexported fields }
Command represents the command executed by "kapacitord run".
func (*Command) ParseConfig ¶
ParseConfig parses the config at path. Returns a demo configuration if path is blank.
func (*Command) ParseFlags ¶
ParseFlags parses the command line flags from args and returns an options set.
type Config ¶
type Config struct { HTTP httpd.Config `toml:"http"` Replay replay.Config `toml:"replay"` Storage storage.Config `toml:"storage"` Task task_store.Config `toml:"task"` InfluxDB []influxdb.Config `toml:"influxdb"` Logging logging.Config `toml:"logging"` Graphites []graphite.Config `toml:"graphite"` Collectd collectd.Config `toml:"collectd"` OpenTSDB opentsdb.Config `toml:"opentsdb"` UDPs []udp.Config `toml:"udp"` SMTP smtp.Config `toml:"smtp"` OpsGenie opsgenie.Config `toml:"opsgenie"` VictorOps victorops.Config `toml:"victorops"` PagerDuty pagerduty.Config `toml:"pagerduty"` Sensu sensu.Config `toml:"sensu"` Slack slack.Config `toml:"slack"` HipChat hipchat.Config `toml:"hipchat"` Alerta alerta.Config `toml:"alerta"` Reporting reporting.Config `toml:"reporting"` Stats stats.Config `toml:"stats"` UDF udf.Config `toml:"udf"` Deadman deadman.Config `toml:"deadman"` Talk talk.Config `toml:"talk"` Hostname string `toml:"hostname"` DataDir string `toml:"data_dir"` // contains filtered or unexported fields }
Config represents the configuration format for the kapacitord binary.
func NewConfig ¶
func NewConfig() *Config
NewConfig returns an instance of Config with reasonable defaults.
func NewDemoConfig ¶
NewDemoConfig returns the config that runs when no config is specified.
func (*Config) ApplyEnvOverrides ¶
func (*Config) PostInit ¶ added in v0.11.0
func (c *Config) PostInit()
Once the config has been created and decoded, you can call this method to initialize ARRAY attributes. All ARRAY attributes have to be init after toml decode See: https://github.com/BurntSushi/toml/pull/68
type Options ¶
type Options struct { ConfigPath string PIDFile string Hostname string CPUProfile string MemProfile string LogFile string LogLevel string }
Options represents the command line options that can be parsed.
type PrintConfigCommand ¶
PrintConfigCommand represents the command executed by "kapacitord config".
func NewPrintConfigCommand ¶
func NewPrintConfigCommand() *PrintConfigCommand
NewPrintConfigCommand return a new instance of PrintConfigCommand.
func (*PrintConfigCommand) Run ¶
func (cmd *PrintConfigCommand) Run(args ...string) error
Run parses and prints the current config loaded.
type Server ¶
type Server struct { TaskMaster *kapacitor.TaskMaster TaskMasterLookup *kapacitor.TaskMasterLookup LogService logging.Interface HTTPDService *httpd.Service StorageService *storage.Service TaskStore *task_store.Service ReplayService *replay.Service InfluxDBService *influxdb.Service MetaClient *kapacitor.NoopMetaClient QueryExecutor *queryexecutor Services []Service ClusterID string ServerID string // Profiling CPUProfile string MemProfile string Logger *log.Logger // contains filtered or unexported fields }
Server represents a container for the metadata and storage data and services. It is built using a Config and it manages the startup and shutdown of all services in the proper order.