Heartbeat monitoring per hostΒΆ

New in version 0.9.

Plugin Name: SandboxFilter
File Name: lua_filters/heartbeat.lua

Heartbeat monitoring per host.

Generates a JSON structure that can be used to create a custom heartbeat dashboard. The output consists of a row per host which includes the host’s last_heartbeat, last_alert and status.

This plugin also sends an alert when the heartbeat_timeout is exceeded and supports alert throttling to reduce noise.


  • heartbeat_timeout (uint, optional, default 30)

    Sets the maximum duration (in seconds) between heartbeats before an alert is sent.

  • alert_throttle (uint, optional, default 300)

    Sets the minimum duration (in seconds) between alert event outputs.

Example Heka Configuration

type = "SandboxFilter"
filename = "lua_filters/heartbeat.lua"
ticker_interval = 30
preserve_data = true
message_matcher = "Type == 'heartbeat'"

  heartbeat_timeout = 30
  alert_throttle = 300

type = "SandboxEncoder"
filename = "lua_encoders/alert.lua"

type = "SmtpOutput"
message_matcher = "Type == 'heka.sandbox-output' && Fields[payload_type] == 'alert'"
send_from = ""
send_to = [""]
auth = "Plain"
user = "smtp-user"
password = "smtp-pass"
host = ""
encoder = "alert"

Example Output

Alert:Missing Heartbeat - ip-10-0-0-187