Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgent ¶ added in v0.16.0
NewAgent creates a new instance of agent.Agent from its configuration conf.
func NewMackerelClient ¶ added in v0.43.2
NewMackerelClient returns Mackerel API client for mackerel-agent
Types ¶
type App ¶ added in v0.43.1
type App struct { Agent *agent.Agent Config *config.Config Host *mackerel.Host API *mackerel.API CustomIdentifierHosts map[string]*mackerel.Host AgentMeta *AgentMeta }
App contains objects for running main loop of mackerel-agent
func Prepare ¶ added in v0.8.0
Prepare sets up API and registers the host data to the Mackerel server. Use returned values to call Run().
func (*App) UpdateHostSpecs ¶ added in v0.43.1
func (app *App) UpdateHostSpecs()
UpdateHostSpecs updates the host information that is already registered on Mackerel.
Click to show internal directories.
Click to hide internal directories.