2021-09-20

Getting intricate alerts from PagerDuty on Axiom.

Tola Ore-Aruwaji
@thecraftman_

Whether you're managing simple or complex services, having visibility into what is happening throughout the day is incredibly important for availability and stability.

Use Axiom's monitors to keep an eye on all the important metrics and log streams to be notified of any anomalies immediately. Run simple checks or use APL for more complex checks and create 24/7 monitoring for your data.

Take your monitoring efforts even further by using our PagerDuty notifier. PagerDuty allows you to have enterprise-level alerting for issues via a simple, accessible interface. Setup teams, on-call schedules, notes, etc - everything you need to quickly go from alert to resolution.

In this tutorial, you will learn how to connect Axiom to PagerDuty to supercharge your monitoring.

With Monitors, you can:

  • Visualize your backends.
  • Run queries on your applications and resources.
  • Take action on the metrics and logs coming from resources in Axiom.

These insights can be visualized within the Monitor giving you an end-to-end monitoring experience for your metrics and logs.

Let's get energized ⚡️

  1. Visit PagerDuty to create and set up your account

  2. Click on Add new services

1

  1. Create your service by entering the Name and Description. Leave everything else as default.

1

  1. Click on Create service without an integration

1

  1. On the dashboard menu, click on integration and select API keys.

1

  1. Enter the description of your API Key and click on Create Key.

1

  1. Back in Axiom Cloud setup your alerts by clicking on alerts on the Axiom dashboard.

1

  • Before configuring your alerts, you need to set up monitors and notifiers.

  • Monitors lets you set up and run queries over different periods. After configuring and setting up queries, you can confirm if the values created from the results exceed the threshold. If it exceeds the threshold value you configured, then the monitor would trigger and send an alert to the type of Notifier you added to the monitor.

  • Notifiers are an important component of monitors that keep your team informed of issues, and if any complications arise.

Notifications can be sent through four different notifiers:

1

  • Email
  • Slack
  • PagerDuty
  • Opsgenie
  • Webhhook
  1. Select the pagerDuty notifier, and add the INTEGRATION KEY you created in step 6. and click on Create.

1

Monitors will help you increase the performance and availability of your applications and services by letting you know and see specific insights into your Backend, applications, and workloads.

Monitors & Notifiers provides a single source for monitoring Axiom resources.

  1. After you have created your PagerDuty Notifier, Configure your Monitor.

1

  • The name of my monitor is: PagerDuty Monitoring

  • Description - Monitor Applications and resources from PagerDuty. Inserting a description is very useful especially for your team members, Helpful for team members so that they can know what it was created for.

  • For Trigger options, I set the comparison type to above or equal to the value of 1. 1 is the value to compare the results of the query to.

  • Specify the frequency and time range for your monitor. Here I configured mine to check this monitor for every 1 minute(s) with data from the last 1 minute(s).

  • Select your notification option. Here I'm selecting the notification via PagerDuty which I configured in the previous steps.

  • Select your dataset to monitor.

  • Choose the Aggregation type you want to run your Query on. Here, I configured my query using the count aggregation. It will trigger the monitor and send an alert to my email when the value of 1 is or equal to the threshold value of 1.

  • You can snooze your monitor by clicking the 'alarm clock' icon in the slide-out toolbar. By snoozing a monitor, no checks will be carried out by the monitor until the snooze time is elapsed.

  • You can use GROUP BY to get a more specific alert where necessary. This will trigger your monitor once for every group that is produced by a query.

  1. Go back to your Monitors page, wait for 1 minute(s). You will see that the alert has been triggered.

1

  1. In your Email, PagerDuty will send a notification to you when your monitors are triggered

1

  • From your Email, you can now manage your on-call shifts by clicking the link attached to it
  1. Back to PagerDuty, you can manage your On-Call Shift(s) by selecting the specific Shifts you are on or the group of schedules you have worked with over time.

1

  • You can configure your monitors to get triggered at any value, frequency, period, rate, interval, and time range

You see how fast it is to integrate your resources and application alerts on Axiom with PagerDuty.

Wow! Can I see more? 🥰

Of course, you can! Visit the links below to learn more about what you can do with Axiom.

You can also follow us on Twitter and on our blog. And if you’ve enjoyed this post, please, take a second to share it on Twitter.

Stay tuned for our next blog post 😇

Join us in changing how developers think about data