Get MetricFire Alerts sent to PagerDuty

Get MetricFire Alerts sent to PagerDuty

Table of Contents

Problem: Our application receives alerts every day about system performance, code bugs, and other issues. We need a way to delegate these problems to the correct people.

Solution: Use PagerDuty to create alerts that are assigned to specific people.

What is PagerDuty?

PagerDuty is a platform that lets you track alerts from several different products on a single application, and can let you assign alerts to specific people on your team. Today we will add an alert to PagerDuty that is coming from MetricFire's product, Hosted Graphite. Check out the MetricFire free trial so you can follow along with this tutorial. When something goes wrong with the system metrics that are being monitored, MetricFire will send a notification to PagerDuty.

Setting Things Up

PagerDuty side: Let’s first create a service. From your PagerDuty dashboard, go to Configuration > Services > + New Service.

 

undefined

undefined

‍ 

Next, we will name our new service. Then under Integration Settings, we want to check ‘Use our API directly. This will give us an integration key for the new service we just made under the service’s integration tab. Now we can add this integration key to our Hosted Graphite account.

‍ 

undefined

undefined

 

Hosted Graphite side: From our Hosted Graphite dashboard, let’s go to Alerts > Notification Channels > + Add Channel.

 

undefined

 

We will need to set the Notification Type to PagerDuty, give it a name, and then insert that integration key we just got from our new service on PagerDuty. Now we can use this new channel for the notification channel for alerts that we create on Hosted Graphite.

 

undefined

 ‍

Next, let’s create some alerts on one of our graphs. Go to Alerts > Alerts > + Add Alert.

‍ 

undefined

‍ 

Give the alert a name, and then be sure the metric query is correct. You can go to Metrics > Metrics Treemap to reference the query you want.

‍ 

undefined

‍ 

Next, we will set the criteria for the alert. The alert can be set to fire if the value is above or below a certain point, or if the value goes completely missing. Once you have it set to what you want to keep track of, be sure to set ‘Notify me with…’ to your new PagerDuty notification channel that we created in the above images.

 ‍

undefined

 ‍

You can check to see if the metric query is working by going back to ‘1. Choose Metric’ and click on ‘Check Metric Graph’ at the bottom of the window. Something like the image below should show up.

‍ 

undefined

 

The Result

 

undefined

 

Once the alert criteria reaches it's threshold, you should get a detailed alert on your PagerDuty’s service that you set up with Hosted Graphite. Now you are able to manually or automatically delegate tasks to specific individuals on your team whenever an alert pops up.

Get to know MetricFire better, and get a free trial so you can start making dashboards right away. Feel free to book a demo if you have questions about what Hosted Graphite can do for you.

You might also like other posts...
graphite Dec 17, 2024 · 4 min read

MetricFire add-on: Show Sentry Errors in Annotations

See how MetricFire can display annotations from Sentry directly in the Grafana graphs. Continue Reading

graphite Nov 18, 2024 · 10 min read

Monitoring Digital Ocean with Hosted Graphite and Telegraf

Explore detailed insights on how to effectively monitor your DigitalOcean environment using Hosted Graphite... Continue Reading

graphite Jun 14, 2024 · 10 min read

Back Up Your Graphite Cluster with Whisper: A Step-by-Step Guide

Protect your Graphite cluster's data! Learn how to backup with Whisper & ensure data... Continue Reading

header image

We strive for 99.999% uptime

Because our system is your system.

14-day trial 14-day trial
No Credit Card Required No Credit Card Required