json_exporter/json_exporter.go
Ben Kochie 4621bca6f6
More community cleanup
* Fix up naming to be json_exporter.
* Fix more imports/paths.
* Add Go modules.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 08:45:38 +02:00

14 lines
336 B
Go

package main
import (
"github.com/prometheus-community/json_exporter/harness"
"github.com/prometheus-community/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)
}