monitor.deadman() function

The monitor.deadman() function detects when a group stops reporting data. It takes a stream of tables and reports if groups have been observed since time t.

*Function type: Transformation*

  1. import "influxdata/influxdb/monitor"
  2. monitor.deadman(t: 2019-08-30T12:30:00Z)

monitor.deadman() retains the most recent row from each input table and adds a dead column. If a record appears after time t, monitor.deadman() sets dead to false. Otherwise, dead is set to true.

Parameters

t

The time threshold for the deadman check.

*Data type: Time*

Examples

Detect if a host hasn’t reported in the last five minutes

  1. import "influxdata/influxdb/monitor"
  2. import "experimental"
  3. from(bucket: "example-bucket")
  4. |> range(start: -10m)
  5. |> group(columns: ["host"])
  6. |> monitor.deadman(t: experimental.subDuration(d: 5m, from: now() ))