edit

Notifications

PagerDuty

If you don’t already have a PagerDuty Generic API service, you should create one:

  1. In your account, under the Configuration tab, select Services and click "Add New Service".
  • Enter a name for the service and select an escalation policy.

  • Click the "Add Service" button.

  • Once the service is created, you’ll be taken to the service page. On this page, you’ll see the "Service Integration key", which will be needed when you configure your Amon instance to send events to PagerDuty.

  • he next step will be creating a new incident for the Service.

  • You will be redirected to the incident page. Copy the Incident Key

In Amon

  • In your Amon instance, in Settings, select the "Notifications" tab, paste the Incident Key and Integration Key from Pagerduty and press 'Save'

VictorOps

  1. In your account, under the Settings tab, select Integrations and click REST Endpoint.

In Amon

  1. In your Amon instance, in Settings, select the "Notifications" tab, paste the Key from VictorOps, replace $routing_key with amon and press 'Save'

    • That is it. The next time you Add or Edit your alerts, you can select the VictorOps checkbox and the next time Amon triggers an alert, it will send the data to VictorOps

OpsGenie

  • In your account, under the Integrations tab, click API.
  • In the API tab, click Save Integration.

In Amon:

  • In your Amon instance, in Settings, select the "Notifications" tab, paste the Key from OpsGenie and press 'Save'

Pushover

  1. On your Pushover Dashboard, click Register an Application, select a Name and click Create Application.
  • Copy the application API Token and the User Key from your dashboard.

In Amon:

  • In your Amon instance, in Settings, select the "Notifications" tab, paste the application API Token and User Key from Pushover and press 'Save'

Slack

  1. From the Slack settings dropdown menu(in the left top corner), click Configure integrations, select Incoming webhooks and click Add.
  • Copy the Webhook URL, don't forget to press Save Settings at the bottom of the page.

In Amon

  1. In your Amon instance, in Settings, select the "Notifications" tab, paste the Webhook URL from Slack and press 'Save'

Hipchat

  1. Click on a room and from the room settings menu in the top right corner, click Integrations, select Create your own. * Copy the URL

In Amon:

  • In your Amon instance, in Settings, select the "Notifications" tab, paste the URL from Hipchat and press 'Save'

Webhooks

Starting with version 3.3 Amon supports Webhooks, which make it easy for you to integrate more sophisticated alerting platforms like PagerDuty, VictorOps.



To create a webhook, go to Settings/Webhooks and set an URL. For additional protection, you can set a secret passphrase which is going to be sent with the request.

{
    "trigger": {"to": 1428223320, "from": 1428223286, "average_value": 63.0}, 
    "alert": {"rule_type": "global", 
        "metric_value": 5, 
        "metric": "Disk", 
        "period": 30, 
        "metric_type": "%", 
        "above_below": "above"
    }, 
    "server": {"name": "local"}
    "process": {"name": "ruby"}
    "secret": "secretpass"
}