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{ PostMetricsDequeueDelaySeconds: 30, PostMetricsRetryDelaySeconds: 60, PostMetricsRetryMax: 60, PostMetricsBufferSize: 6 * 60, }, }
DefaultConfig The default configuration for linux
View Source
var PostMetricsInterval = 1 * time.Minute
PostMetricsInterval XXX
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 }
Config XXX
type ConnectionConfig ¶ added in v0.9.0
type ConnectionConfig struct { PostMetricsDequeueDelaySeconds int `toml:"post_metrics_dequeue_delay_seconds"` // delay for dequeuing from buffer queue PostMetricsRetryDelaySeconds int `toml:"post_metrics_retry_delay_seconds"` // delay for retrying a request that caused errors PostMetricsRetryMax int `toml:"post_metrics_retry_max"` // max numbers of retries for a request that causes errors PostMetricsBufferSize int `toml:"post_metrics_buffer_size"` // max numbers of requests stored in buffer queue. }
ConnectionConfig XXX
Click to show internal directories.
Click to hide internal directories.