Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
waisbrot committed Jan 1, 2024
1 parent 49ea431 commit 7e9bec1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions metrics/influx.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ func initInflux(args []string) {
} else {
command = ""
}
options := &influxdb.Options{}
options.SetApplicationName("birdweather")
options.AddDefaultTag("command", command)
influxClient = influxdb.NewClientWithOptions(
viper.GetString("influx.url"),
viper.GetString("influx.url"),
viper.GetString("influx.token"),
&influxdb.Options{
writeOptions: &write.Options{
defaultTags: map[string]string{
"command": command,
}
}
})
options)
writeAPI = influxClient.WriteAPIBlocking(viper.GetString("influx.org"), viper.GetString("influx.bucket"))

produceMetrics = true
Expand Down

0 comments on commit 7e9bec1

Please sign in to comment.