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...
grafana Oct 30, 2023 · 1 min read

Graphite vs Nagios - インフラ監視ツールを比べてみた

Graphiteとは? Graphiteは、2008年にリリースされたオープンソースの時系列系データの監視ソフトウェアです。これは、情報プル型の監視ソフトウェアであり、すでにある情報を取得して、そのメトリクスを収集し、記録して視覚化します。 Continue Reading

grafana Oct 30, 2023 · 2 min read

【IoTの監視】MQTTとGraphiteを使用してGrafanaで可視化

IoTデバイスの普及により、私たちの身の回りには、さらに多くのデータで溢れるようになってきました。しかし、データ自体は、それに基づいて行動を起こすことができない限り、有用なものではありません。データを有効に活用していくために、IoTデータを視覚化させテイクことが必要で、この記事ではその方法を解説していきます。 Continue Reading

grafana Oct 23, 2023 · 1 min read

【Hosted Graphite】OSSのマネージド監視サービス

Graphiteとは、2008年にリリースされたオープンソースの時系列系データの監視プラットフォームです。このツールを使えば、時系列データを取得して、そのメトリクスを収集し、記録して視覚化出来るため、インフラ監視のためによく使われています。 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