mirror of
https://github.com/prometheus-community/json_exporter
synced 2025-01-11 08:49:37 +00:00
4621bca6f6
* Fix up naming to be json_exporter. * Fix more imports/paths. * Add Go modules. Signed-off-by: Ben Kochie <superq@gmail.com>
14 lines
336 B
Go
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)
|
|
}
|