monitor.deadman() function

Flux 0.39.0+

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.

import "influxdata/influxdb/monitor"

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.



The time threshold for the deadman check.


Input data. Default is piped-forward data (<-).


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

import "influxdata/influxdb/monitor"
import "experimental"

from(bucket: "example-bucket")
  |> range(start: -10m)
  |> group(columns: ["host"])
  |> monitor.deadman(t: experimental.subDuration(d: 30s, from: now() ))

View example input and output

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.