Versions in this module Expand all Collapse all v0 v0.1.1 Jun 18, 2015 v0.1.0 Jun 18, 2015 Changes in this version + var ErrInvalidConfig = errors.New("invalid configuration") + func PrintSampleConfig() + type Agent struct + Config *Config + Debug bool + Hostname string + Interval Duration + func NewAgent(config *Config) (*Agent, error) + func (a *Agent) LoadPlugins() ([]string, error) + func (a *Agent) Run(shutdown chan struct{}) error + func (a *Agent) Test() error + func (a *Agent) TestAllPlugins() error + func (agent *Agent) Connect() error + type BatchPoints struct + Config *ConfiguredPlugin + Debug bool + Prefix string + func (bp *BatchPoints) Add(measurement string, val interface{}, tags map[string]string) + func (bp *BatchPoints) AddValuesWithTime(measurement string, values map[string]interface{}, tags map[string]string, ...) + type Config struct + Database string + Password string + Tags map[string]string + URL string + UserAgent string + Username string + func DefaultConfig() *Config + func LoadConfig(path string) (*Config, error) + func (c *Config) ApplyAgent(v interface{}) error + func (c *Config) ApplyPlugin(name string, v interface{}) (*ConfiguredPlugin, error) + func (c *Config) ListTags() string + func (c *Config) Plugins() map[string]*ast.Table + func (c *Config) PluginsDeclared() []string + type ConfiguredPlugin struct + Drop []string + Interval time.Duration + Name string + Pass []string + func (cp *ConfiguredPlugin) ShouldPass(measurement string) bool + type Duration struct + func (d *Duration) UnmarshalTOML(b []byte) error