mackerel-plugin-gostats

command
v0.39.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

mackerel-plugin-gostats

gostats custom metrics plugin for mackerel.io agent.

Synopsis

mackerel-plugin-gostats [-host=<host>] [-port=<port>] [-path=<path>] [-scheme=<http|https>] [-uri=<URI>] [-metric-key-prefix=gostats]

Requirements

This plugin requires github.com/fukata/golang-stats-api-handler Enable github.com/fukata/golang-stats-api-handler as below.

import (
    "net/http"
    "log"
    "github.com/fukata/golang-stats-api-handler"
)
func main() {
    http.HandleFunc("/api/stats", stats_api.Handler)
    log.Fatal( http.ListenAndServe(":8080", nil) )
}

Example of mackerel-agent.conf

[plugin.metrics.gostats]
command = "/path/to/mackerel-plugin-gostats -port=8000 -path=/api/stats"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL