Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions check_influxdb_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var (
username = kingpin.Flag("username", "influxdb username").Default("admin").Short('u').String()
password = kingpin.Flag("password", "influxdb password").Default("admin").Short('p').String()
db = kingpin.Flag("db", "influxdb database name").Default("telegraf").Short('d').String()
warningThreshold = kingpin.Flag("warning-threshold", "warning threshold for returned value").Short('w').Required().Int()
criticalThreshold = kingpin.Flag("critical-threshold", "critical threshold for returned value").Short('c').Required().Int()
warningThreshold = kingpin.Flag("warning-threshold", "warning threshold for returned value").Short('w').Required().Float64()
criticalThreshold = kingpin.Flag("critical-threshold", "critical threshold for returned value").Short('c').Required().Float64()
compareOperator = kingpin.Flag("compare-operator", "operator to compare returned value with thresholds, 'lt' or 'gt'").Short('o').Default("lt").String()
query = kingpin.Arg("query", "influxdb query which returns one value to be able compare against integer thresholds").Required().String()
)
Expand Down