Hemdal Alerts/Alarms Panel

Elixir CI Hex.pm Version Hex Docs Hex.pm Total Downloads License: MIT Last Updated Paypal: Donation Patreon: Donation

Hemdal is an extensible alerts and alarms monitoring library for Elixir applications. It proactively monitors local and remote hosts, evaluates health check rules, tracks state transitions, and sends notifications when issues or recoveries occur.


Features


Installation

Add hemdal to your list of dependencies in mix.exs:

def deps do
  [
    {:hemdal, "~> 1.2"}
  ]
end

Quick Example

Configure your hosts and alert checks in config/config.exs:

import Config

config :hemdal, :config_module, Hemdal.Config.Backend.Env

config :hemdal, Hemdal.Config, [
  [
    id: "disk-space-check",
    name: "Disk Space Check",
    host: [
      id: "localhost-node",
      name: "localhost",
      module: Hemdal.Host.Local,
      max_workers: 2
    ],
    command: [
      name: "check_disk",
      type: "line",
      command: "df -h / | awk 'NR==2 {print $5}'"
    ],
    check_in_sec: 60,
    recheck_in_sec: 10,
    retries: 3,
    notifiers: [
      [
        module: Hemdal.Notifier.Slack,
        token: "https://hooks.slack.com/services/YOUR/WEBHOOK/URL",
        channel: "#monitoring",
        username: "HemdalBot"
      ]
    ]
  ]
]

Documentation

Full documentation and guides are available on HexDocs:


License

This project is licensed under the terms of the MIT License.


Contributing & Support

Donate with PayPal

Enjoy!