Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidConfig = errors.New("invalid configuration")
Functions ¶
func PrintSampleConfig ¶
func PrintSampleConfig()
Types ¶
type Agent ¶
type Agent struct { Interval Duration Debug bool Hostname string Config *Config // contains filtered or unexported fields }
func (*Agent) LoadPlugins ¶
func (*Agent) TestAllPlugins ¶
type BatchPoints ¶
type BatchPoints struct { client.BatchPoints Debug bool Prefix string Config *ConfiguredPlugin }
func (*BatchPoints) Add ¶
func (bp *BatchPoints) Add(measurement string, val interface{}, tags map[string]string)
func (*BatchPoints) AddValuesWithTime ¶
type Config ¶
type Config struct { URL string Username string Password string Database string UserAgent string Tags map[string]string // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfig ¶
func (*Config) ApplyAgent ¶
func (*Config) ApplyPlugin ¶
func (c *Config) ApplyPlugin(name string, v interface{}) (*ConfiguredPlugin, error)
func (*Config) PluginsDeclared ¶
type ConfiguredPlugin ¶
func (*ConfiguredPlugin) ShouldPass ¶
func (cp *ConfiguredPlugin) ShouldPass(measurement string) bool
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
system/ps/common
gopsutil is a port of psutil(http://pythonhosted.org/psutil/).
|
gopsutil is a port of psutil(http://pythonhosted.org/psutil/). |
system/ps/disk
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints.
|
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints. |
system/ps/process
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints.
|
Package binary implements simple translation between numbers and byte sequences and encoding and decoding of varints. |
Click to show internal directories.
Click to hide internal directories.