Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{ Apibase: "https://mackerel.io", Root: "/var/lib/mackerel-agent", Pidfile: "/var/run/mackerel-agent.pid", Conffile: "/etc/mackerel-agent/mackerel-agent.conf", Roles: []string{}, Verbose: false, Connection: ConnectionConfig{ Post_Metrics_Dequeue_Delay_Seconds: 30, Post_Metrics_Retry_Delay_Seconds: 5 * 60, Post_Metrics_Retry_Max: 60, Post_Metrics_Buffer_Size: 6 * 60, }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Apibase string Apikey string Root string Pidfile string Conffile string Roles []string Verbose bool Connection ConnectionConfig Plugin map[string]PluginConfigs DeprecatedSensu map[string]PluginConfigs `toml:"sensu"` // DEPRECATED this is for backward compatibility Include string }
func LoadConfig ¶
func LoadConfigFile ¶
type ConnectionConfig ¶ added in v0.9.0
type ConnectionConfig struct { Post_Metrics_Dequeue_Delay_Seconds int // delay for dequeuing from buffer queue Post_Metrics_Retry_Delay_Seconds int // delay for retrying a request that caused errors Post_Metrics_Retry_Max int // max numbers of retries for a request that causes errors Post_Metrics_Buffer_Size int // max numbers of requests stored in buffer queue. }
type PluginConfig ¶
type PluginConfig struct {
Command string
}
type PluginConfigs ¶
type PluginConfigs map[string]PluginConfig
Click to show internal directories.
Click to hide internal directories.