Other | Dec 18, 2024 | 6 min read
In Treblle 3.0, we introduced Custom Alerts to help you stay ahead of API issues. Whether it’s error spikes, unusual activity, or performance concerns, Custom Alerts notify you instantly, keeping your team proactive. In this article, we’ll explore how this feature can transform your API workflow.
When something goes wrong with an API, the last thing you want is to be the last to know. If your API suddenly starts throwing errors or slows down unexpectedly, learning about it right away can save you a lot of trouble.
We added Custom Alerts to Treblle 3.0 to help you catch problems early without digging through logs or being bombarded with unnecessary notifications.
However, Custom Alerts are not the only new feature in Treblle 3.0. Along with alerts, we've rolled out several other powerful updates to make managing your APIs smoother and more efficient. These include Workspaces, SSO, MFA & Social Sign-on, API Catalog, and Compliance. They can significantly enhance your API management and team collaboration if you still need to explore them.
In this blog post, I will walk you through Custom Alerts, explain why they matter, and how they can help make your API workflow smoother and more effective.
Custom Alerts is a feature that lets you define specific events or configure alerts for specific triggers, like a rise in error rates or unexpected traffic from a particular IP.
Once you set your criteria, Treblle will notify you as soon as those conditions trigger.
Here’s what makes Custom Alerts powerful:
It’s all about putting you in control of the noise.
Create a Saved Search:
Request tab inside Treblle dashboard
POST
requests to /auth/register
.Filtering POST requests
Save your search by clicking “Save.”
Saving your filter
Naming your filter for future reference
Set Up a New Alert:
"My Alerts" section
Creating a Custom Alert
Setting up a Custom Alert details
Slack Integration:
Setting up Slack integration
In-App Notifications:
Scenario: You’ve just deployed a new feature to production and want to ensure it’s working as expected.
Saved Search Example:
Filters:
POST
5xx
/auth/register
Alert Rule: Trigger if the error rate exceeds 5% of total requests in 30 minutes.
Why It’s Useful: This alert helps identify issues like server misconfigurations or unhandled exceptions right after deployment. By catching these problems early, you can quickly roll back changes or fix them before they impact users.
Scenario: Your product relies on fast API response times to deliver a great user experience, and you want to ensure latency stays within acceptable limits.
Saved Search Example:
Filters:
Greater than 200ms
200
/search
Alert Rule: Trigger if more than 10% of requests exceed the response time threshold within an hour.
Why It’s Useful: This allows product teams to address performance bottlenecks proactively before they negatively impact users.
Scenario 1: Detect brute force attacks on login endpoints.Saved Search Example:
Filters:
POST
/login
401 (Unauthorized)
Alert Rule: Notify if failed login attempts exceed 100 in 10 minutes.
Why It’s Useful: This can help security teams identify and mitigate brute force attacks in real-time.
Scenario: Your team has committed to a 99.9% uptime SLA, and you must be alerted when downtime or failures occur.
Saved Search Example:
Filters:
5xx
Greater than 1s
Alert Rule: Notify if more than 2% of requests in 5 minutes fail or are too slow.
Why It’s Useful: Ops teams can take immediate action, such as scaling resources or restarting services, to restore regular operations and meet SLA commitments.
Setting up alerts is easy, but getting the most out of them takes a bit of thought. Here are some tips to make sure your Custom Alerts are as helpful as possible:
Custom Alerts in Treblle 3.0 offer a simple yet effective way to stay on top of your APIs.
They help you focus on what matters, keeping you informed about critical events without drowning in irrelevant notifications.
Setting up tailored alerts can improve team monitoring, collaboration, and response times. Explore and set up Custom Alerts in Treblle 3.0 to take control of your API monitoring and stay ahead of potential issues.
Treblle 3.0 simplifies API access management with the new Roles and Permissions feature. By defining users as Owners or Members, teams gain clarity over who can manage, edit, or view APIs and Workspaces. This ensures secure collaboration and protects critical data.
Attention spans are shorter than ever, and messaging needs to adapt quickly to stay impactful. For Treblle, this meant reevaluating how we present our value. Through careful reflection and evolution, we landed on a new identity that speaks directly to what we offer: the API Intelligence Platform.
Aspen just got even better! With the new Import/Export feature for Collections, you can quickly share API requests with your team or import Collections from Postman. This update enhances collaboration, streamlines workflows, and makes reusing APIs easier than ever.