json_exporter/json_exporter.go
2016-02-08 22:55:40 +09:00

14 lines
339 B
Go

package main
import (
"github.com/kawamuray/prometheus-exporter-harness/harness"
"github.com/kawamuray/prometheus-json-exporter/jsonexporter"
)
func main() {
opts := harness.NewExporterOpts("json_exporter", jsonexporter.Version)
opts.Usage = "[OPTIONS] HTTP_ENDPOINT CONFIG_PATH"
opts.Init = jsonexporter.Init
harness.Main(opts)
}