monitor.deadman() function
The features and functionality discussed on this page are unique to InfluxDB Cloud 2.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
.
Function type: Transformation
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
.
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
import "influxdata/influxdb/monitor"
import "experimental"
from(bucket: "example-bucket")
|> range(start: -10m)
|> group(columns: ["host"])
|> monitor.deadman(t: experimental.subDuration(d: 5m, from: now() ))
Bug Reports and Feedback
Thank you for being willing to help test InfluxDB v2.0 alpha! Feedback and bug reports are welcome and encouraged both for InfluxDB and this documentation. Submit feedback using one of the following methods:
- Post in the InfluxData Community
- In the InfluxDB UI, click Feedback in the left navigation bar.
- Submit documentation issues to the InfluxDB 2.0 documentation repository.
- Submit InfluxDB issues to the InfluxDB repository.