mirror of
https://github.com/Luzifer/bind-log-metrics.git
synced 2024-11-08 16:00:04 +00:00
Add flags for influx config
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
22946bf1b9
commit
f27e196d71
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
@ -21,10 +21,10 @@ const (
|
|||
|
||||
var (
|
||||
cfg = struct {
|
||||
InfluxDBName string `description:"Database name of the InfluxDB" validate:"nonzero"`
|
||||
InfluxHost string `description:"Hostname of the InfluxDB" validate:"nonzero"`
|
||||
InfluxPass string `description:"Password of the InfluxDB" validate:"nonzero"`
|
||||
InfluxUser string `description:"Username of the InfluxDB" validate:"nonzero"`
|
||||
InfluxDBName string `flag:"influx-db-name" description:"Database name of the InfluxDB" validate:"nonzero"`
|
||||
InfluxHost string `flag:"influx-host" description:"Hostname of the InfluxDB" validate:"nonzero"`
|
||||
InfluxPass string `flag:"influx-pass" description:"Password of the InfluxDB" validate:"nonzero"`
|
||||
InfluxUser string `flag:"influx-user" description:"Username of the InfluxDB" validate:"nonzero"`
|
||||
LogLevel string `flag:"log-level" default:"info" description:"Log level (debug, info, warn, error, fatal)"`
|
||||
VersionAndExit bool `flag:"version" default:"false" description:"Prints current version and exits"`
|
||||
}{}
|
||||
|
|
Loading…
Reference in a new issue