Hosted Graphite Integration

Hosted Graphite  is monitoring as a service with useful alerting for development teams who run applications at scale. It provides its users to explore their data on open source Grafana dashboards and get alerts via integrated tools. OpsGenie is an alert and notification management solution that is highly complementary to Hosted Graphite's alerting mechanism.

What does OpsGenie offer Hosted Graphite users?

By using OpsGenie’s Hosted Graphite Integration: you can forward Hosted Graphite alerts to OpsGenie. OpsGenie can determine the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls, iOS & Android push notifications, and escalating alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When an alert is created in Hosted Graphite, it creates an alert in OpsGenie.

Add Hosted Graphite Integration in OpsGenie

  1. Please create an OpsGenie account if you haven't done so already.
  2. Go to OpsGenie's Hosted Graphite Integration page.
  3. Specify who should be notified for Hosted Graphite alerts using the "Teams" field. Autocomplete suggestions will be provided as you type.
  4. Copy the API Key.
  5. Click on "Save Integration."

Configuration in Hosted Graphite

  1. In Hosted Graphite, go to Notification Channels.
  2. Click + Add Channel.
  3. Select OpsGenie option from Notification Type.
  4. Enter the name of your notification channel to Name field.
  5. Paste the API Key you copied from OpsGenie into OpsGenie API key.
  6. Click Save.

Sample payload sent from Hosted Graphite

Create Alert payload:

{
    "name": "hostedgraphite_test_alert",
    "criteria": "metric values missing for 1 minutes",
    "graph": "http://i.mfhg.io/render-api/e3c33750/035359b9aefe772.png",
    "value": "None",
    "metric": "_test-data.servers.webserver0.requests.count",
    "status": "alerting",
    "backoff_minutes": false,
    "info": "Instructions regarding the alert"
}
                            

This payload is parsed by OpsGenie as:

{
    "alarmName": "test",
    "alarmCriteria": "metric values missing for 1 minutes",
    "alarmValue": "None",
    "alarmMetric": "_test-data.servers.webserver0.requests.count",
    "alarmStatus": "alerting",
    "alarmInfo": "Instructions regarding the alert"
}
                            

Close Alert payload:

{
    "name": "hostedgraphite_test_alert",
    "criteria": "metric values missing for 1 minutes",
    "graph": "http://i.mfhg.io/render-api/e3c33750/035359b9aefe772.png",
    "value": "None",
    "metric": "_test-data.servers.webserver0.requests.count",
    "status": "recovered",
    "backoff_minutes": false,
    "info": "Instructions regarding the alert"
}
                            

This payload is parsed by OpsGenie as:

{
    "alarmName": "test",
    "alarmCriteria": "metric values missing for 1 minutes",
    "alarmValue": "None",
    "alarmMetric": "_test-data.servers.webserver0.requests.count",
    "alarmStatus": "recovered",
    "alarmInfo": "Instructions regarding the alert"
}
                            

Sample Alert