

New Magic Dashboard for Ruby on Rails: ActionMailer
source link: https://blog.appsignal.com/2020/12/15/ruby-rails-actionmailer-magic-dashboard.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Monitoring your application can be a difficult task if you’re just getting started with it. You need to know which metrics matter most and understand which ones you can combine into meaningful graphs.
In the (not just holiday ⛄️) spirit of making things smoother for our users, we’ve added a magic dashboard to the Ruby integration that shows you the volume of emails you are sending with ActionMailer.
Magic Dashboards
During the setup process, our agent scans your app infrastructure. Once it figures out which tools you’re using, it automatically instruments some parts of your app and instantly creates the most important dashboards (we call them Magic Dashboards), so that you can monitor what matters most with 0 setup time.
For the Ruby integration we’ll set up your Magic Dashboards for background jobs through Sidekiq, databases like Mongo, and web servers like Puma.
Making Things Easy for Ruby on Rails Users
It’s already possible to monitor how much email is being sent with Rails through the “background” namespace on AppSignal, where you can see how often a specific mailer was called.
However, this requires filtering of the background jobs and it’s hard to get a sense of the kind of emails that are being sent. We decided to make it easier and more detailed than that. In the case of AppSignal monitoring AppSignal itself, it’s important to monitor email traffic and it’s nice to be able to see the distribution between Error, Performance and Anomaly detection emails.
ActionMailer Magic Dashboard in AppSignal
When updating to the latest Ruby integration (2.11.1
or better), you will see a new magic dashboard for ActionMailer metrics. This dashboard allows you to keep track of the amount of times a certain mailer was called and see the distribution between the different mailers in your application.
The ActionMailer dashboard plots the following data:
ActionMailer Deliveries
Delivery throughput per ActionMailer class/method (e.g.Usermailer#welcome
)ActionMailer Deliveries
Delivery throuhput distribution shown in percentage between the different mailers
The graphs are split out by ActionMailer class/method:
If you are already on Ruby integration 2.11.1
or better, the Magic Dashboard will appear automatically as soon as we detect new ActionMailer calls
Setting a Trigger to Send Out an Alert
Another cool thing that becomes easier with the data in graphs is setting triggers for it and sending out alerts when these are triggered.
For example, when the throughput goes over or under a certain threshold, this is something to consider setting a trigger for. To do so, click the three dots on the right top of the graph and start the trigger setup.
Try AppSignal: Monitoring Made Easy And Sweet 🍪
If you haven’t used AppSignal before, now you know how we save you time by making monitoring easier. We’d love you to try us out. When you do, feel free to reach out, we’ll send you a free box of stroopwafels as well.
Recommend
-
49
In this article, we’re going to explore the following topics: comments vs magic comments specifications existing magic comments Comments vs magic comments In Ruby,...
-
11
Sending Threaded Emails Using Rails ActionMailer
-
11
ActionMailer, Vlad and Rake Remote Task Issues Sep 5, 2014 We recently had a situation where adding a UserMailer to a new Rails 4 app (really a tiny one) led to conflicts with "domain" and Rake Remote Task in...
-
11
Today, we’ve added a magic dashboard to the Node.js integration that shows you the performance and volume of your PostgreSQL queries. Making Things Easy for Node.js Users We’ve ensured that all the basics are in place to moni...
-
10
Today, we will dive into one of the hard parts of using any monitoring - making sense out of all the data that is emitted. We think this is one of the hard parts. And being developers building for developers, we think a lot like you do – we t...
-
9
Today we’re adding another Magic Dashboard! Here’s what we’ve added, and which metrics are useful to track. Heroku (host) metrics A while ago we introduced
-
6
We just released a Magic Dashboard for Garbage Collection stats for our Node.js integration. If you are leaking memory, this dashboard will help you discover and fix this problem. No setting up is required, this dashboard will magically autom...
-
6
-
5
“I absolutely love AppSignal.” Discover AppSignal We have been collecting Logplex data for our Heroku customers for a while now. With that data we create Magic Da...
-
5
appsignalAppSignal for Ruby Gem 3.1: MRI VM Magic Dashboard
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK