1
0
Fork 0
mirror of https://github.com/Luzifer/bind-log-metrics.git synced 2024-12-22 20:11:16 +00:00

Add flags for influx config

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-25 19:50:16 +01:00
parent 22946bf1b9
commit f27e196d71
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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"`
}{}