mirror of
https://github.com/prometheus-community/json_exporter
synced 2024-12-18 12:35:40 +00:00
14 lines
339 B
Go
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)
|
|
}
|