Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{ Apibase: getApibase(), Root: "/var/lib/mackerel-agent", Pidfile: "/var/run/mackerel-agent.pid", Conffile: "/etc/mackerel-agent/mackerel-agent.conf", Roles: []string{}, Verbose: false, Diagnostic: 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 Diagnostic bool `toml:"diagnostic"` Connection ConnectionConfig DisplayName string `toml:"display_name"` HostStatus HostStatus `toml:"host_status"` // Corresponds to the set of [plugin.<kind>.<name>] sections // the key of the map is <kind>, which should be one of "metrics" or "checks". Plugin map[string]PluginConfigs DeprecatedSensu map[string]PluginConfigs `toml:"sensu"` // DEPRECATED this is for backward compatibility Include string }
Config represents mackerel-agent's configuration file.
func (*Config) CheckNames ¶ added in v0.16.0
CheckNames return list of plugin.checks._name_
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
type HostStatus ¶ added in v0.17.0
HostStatus configure host status on agent start/stop
type PluginConfig ¶
type PluginConfig struct {
Command string
}
PluginConfig represents a section of [plugin.*].
type PluginConfigs ¶
type PluginConfigs map[string]PluginConfig
PluginConfigs represents a set of [plugin.<kind>.<name>] sections in the configuration file under a specific <kind>. The key of the map is <name>, for example "mysql" of "plugin.metrics.mysql".
Click to show internal directories.
Click to hide internal directories.