uptime

Reference for the `uptime` collector.

uptime · collector · run nanook doc uptime for the same content in your terminal.

System uptime.

Metrics

MetricKindUnitDescription
uptime.secondsnumericsecondsseconds since boot

Examples

Collect every minute

[[collectors]]
name = "uptime"
interval = 60

Detect a recent reboot

[[alerts]]
expr = "uptime.seconds < 5m"
count = 1
channel = "ops"
body = "host rebooted (uptime {{ value }})"