New to Searchlight? Please start here.

Check influx_query

Check command influx_query is used to check InfluxDB query result.

Spec

influx_query check command has the following variables.

  • influxHost - URL of InfluxDB host to query
  • secretName - Name of Secret used for InfluxDB authentication
  • A - 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 ©. Query result will be assigned to variable ©
  • 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 ®
  • 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:

  • OK
  • WARNING
  • CRITICAL
  • UNKNOWN

Next Steps

  • To periodically run various checks on a Kubernetes cluster, use ClusterAlerts.
  • To periodically run various checks on pods in a Kubernetes cluster, use PodAlerts.
  • See the list of supported notifiers here.
  • Wondering what features are coming next? Please visit here.
  • Want to hack on Searchlight? Check our contribution guidelines.

Take your team where it needs to go.

Create your cluster in minutes. Our team is here to help and would be happy to chat with you.