lotus-stats: fix influx flags
This commit is contained in:
parent
ab7ee2f8a9
commit
ff7bdb5140
@ -113,12 +113,14 @@ var runCmd = &cli.Command{
|
|||||||
heightFlag := cctx.Int("height")
|
heightFlag := cctx.Int("height")
|
||||||
headLagFlag := cctx.Int("head-lag")
|
headLagFlag := cctx.Int("head-lag")
|
||||||
|
|
||||||
influxAddrFlag := cctx.String("influx-addr")
|
influxHostnameFlag := cctx.String("influx-hostname")
|
||||||
influxUserFlag := cctx.String("influx-user")
|
influxUsernameFlag := cctx.String("influx-username")
|
||||||
influxPassFlag := cctx.String("influx-pass")
|
influxPasswordFlag := cctx.String("influx-password")
|
||||||
influxDatabaseFlag := cctx.String("influx-database")
|
influxDatabaseFlag := cctx.String("influx-database")
|
||||||
|
|
||||||
influx, err := stats.InfluxClient(influxAddrFlag, influxUserFlag, influxPassFlag)
|
log.Infow("opening influx client", "hostname", influxHostnameFlag, "username", influxUsernameFlag, "database", influxDatabaseFlag)
|
||||||
|
|
||||||
|
influx, err := stats.InfluxClient(influxHostnameFlag, influxUsernameFlag, influxPasswordFlag)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user