Skip to content

Commit

Permalink
Add environment variable support.
Browse files Browse the repository at this point in the history
  • Loading branch information
jirwin committed Jul 25, 2018
1 parent aacae76 commit 580aeb4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions burrow-exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,33 @@ func main() {
cli.StringFlag{
Name: "burrow-addr",
Usage: "Address that burrow is listening on",
EnvVar: "BURROW_ADDR",
},
cli.StringFlag{
Name: "metrics-addr",
Usage: "Address to run prometheus on",
EnvVar: "METRICS_ADDR",
},
cli.IntFlag{
Name: "interval",
Usage: "The interval(seconds) specifies how often to scrape burrow.",
EnvVar: "INTERVAL",
},
cli.IntFlag{
Name: "api-version",
Usage: "Burrow API version to leverage",
Value: 2,
EnvVar: "API_VERSION",
},
cli.BoolFlag{
Name: "skip-partition-status",
Usage: "Skip exporting the per-partition status",
EnvVar: "SKIP_PARTITION_STATUS",
},
cli.BoolFlag{
Name: "skip-group-status",
Usage: "Skip exporting the per-group status",
EnvVar: "SKIP_GROUP_STATUS",
},
}

Expand Down

0 comments on commit 580aeb4

Please sign in to comment.