Documentation
¶
Index ¶
- Constants
- func IdFilePath(root string) string
- func LoadHostId(root string) (string, error)
- func Prepare(conf config.Config) (*mackerel.API, *mackerel.Host)
- func Run(conf config.Config, api *mackerel.API, host *mackerel.Host)
- func SaveHostId(root string, id string) error
- func UpdateHostSpecs(conf config.Config, api *mackerel.API, host *mackerel.Host)
Constants ¶
View Source
const METRICS_POST_BUFFER_SIZE = 30 // max numbers of requests stored in buffer queue.
View Source
const METRICS_POST_DEQUEUE_DELAY = 30 * time.Second // delay for dequeuing from buffer queue
View Source
const METRICS_POST_RETRY_DELAY = 1 * time.Minute // delay for retring a request that causes errors
View Source
const METRICS_POST_RETRY_MAX = 10 // max numbers of retries for a request that causes errors
Variables ¶
This section is empty.
Functions ¶
func IdFilePath ¶ added in v0.6.1
func LoadHostId ¶ added in v0.6.1
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 SaveHostId ¶ added in v0.6.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.