You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
New to Searchlight? Please start here.
Check command influx_query
is used to check InfluxDB query result.
influx_query
check command has the following variables.
influxHost
- URL of InfluxDB host to querysecretName
- Name of Secret used for InfluxDB authenticationA
- InfluxDB query (A). Query result will be assigned to variable (A)B
- InfluxDB query (B). Query result will be assigned to variable (B)C
- InfluxDB query (C). Query result will be assigned to variable (C)D
- InfluxDB query (D). Query result will be assigned to variable (D)E
- InfluxDB query (E). Query result will be assigned to variable (E)R
- Equation [A+B] to get result from queries. Result will be assigned to variable (R)warning
- Condition for warning, compare with result. (Example: R > 75)critical
- Condition for critical, compare with result. (Example: R > 90)Here A
, B
, C
, D
, E
are processed as a GO template generating the final InfluxDB query. The available template variables are: NodeName and NodeIP.
Execution of this command can result in following states: