VOOZH about

URL: https://thenewstack.io/alerting-with-grafana-and-influxdb-cloud-serverless/

⇱ Alerting with Grafana and InfluxDB Cloud Serverless - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-07-14 11:30:53
Alerting with Grafana and InfluxDB Cloud Serverless
sponsor-influxdata,sponsored-post-contributed,
Data / DevOps / Software Development

Alerting with Grafana and InfluxDB Cloud Serverless

Combining these two platforms provides an efficient, scalable and customizable tool for real-time data monitoring and alerting.
Jul 14th, 2023 11:30am by Anais Dotis-Georgiou
👁 Featued image for: Alerting with Grafana and InfluxDB Cloud Serverless
Image via Shutterstock.
InfluxData sponsored this post.

In the data analytics and visualization world, it is crucial to have a system that not only effectively monitors your data, but can also alert you about any potential discrepancies or anomalies that may arise. One powerful tool set that enables you to monitor and alert on time series data is Grafana and InfluxDB Cloud Serverless. Grafana is a popular open source platform for data visualization, while InfluxDB Cloud is a time series platform built on the Apache ecosystem.

Combining these two platforms provides an efficient, scalable and customizable tool for real-time data monitoring and alerting. This blog post guides you through the process of using Grafana to create insightful alerts with the InfluxDB Cloud Serverless platform, providing you with a robust system that keeps you informed and ready to take action when your data exhibits unexpected behavior.

InfluxData is the creator of InfluxDB, the leading time series platform. More than 1,900 customers use InfluxDB to collect, store, and analyze all time series data at any scale. Developers can query and analyze their time-stamped data to predict, respond, and adapt in real-time.
Learn More
The latest from InfluxData

Requirements

The following tutorial assumes that you meet the following requirements:

  • A Telegraf installed on your machine
  • A InfluxDB Cloud Serverless account
  • A local Grafana or Grafana Cloud instance

For this example, we’ll use Telegraf to write CPU metrics to InfluxDB Cloud. I chose this dataset solely to demonstrate how to alert with Grafana, but you can use any Telegraf plugin or dataset you desire. Configure your Telegraf agent by following this documentation. Alternatively, you can use the InfluxDB UI to configure Telegraf by following the instructions in this blog post. (Please note that while the post references InfluxDB 2.x, the UX for configuring Telegraf is the same in InfluxDB Cloud 3.0).

👁 Image

You can also follow these steps to configure the Telegraf agent from the UI:

  • From the home page click on Add Data.
  • Under Telegraf Reporting Agent, select Configure Agent.
  • Click on + CREATE CONFIGURATION.
  • Select a bucket to write data to (I already created a bucket called “cpu”).
  • Search for and select the CPU plugin.
  • Follow the pop-up instructions.

Next, I verified that I can successfully query data from InfluxDB Cloud 3.0 with the Data Explorer:

Use Grafana to Query and Visualize Data

Before we can alert with Grafana, we must first query and visualize our data. Follow this documentation on how to:

  • Get started with Grafana.
  • Create and configure the Flight SQL data source.
  • Query InfluxDB with Grafana.
👁 Image

Example of how to configure the Flight SQL plugin to connect to InfluxDB Cloud 3.0

For this tutorial I used the Grafana Cloud free trial. If you navigate to the Explore page, you can create a query within Grafana to verify that you have successfully configured the Flight SQL plugin. Make sure to select Flight SQL as your source.

👁 Image

Example of querying InfluxDB Cloud 3.0 with Grafana.

Set Up a Grafana Alert

This post covers setting up the most basic alert with Grafana. However, Grafana has advanced alerting capabilities. To learn more about these advanced alerting features in Grafana, please see the following documentation. While the UI has changed some, I followed this tutorial to get started.

First, navigate to the Alerting page from Home > Alerts & IRM > Alerting. From there, go to Manage alert rules.

👁 Image

Add a new rule.

👁 Image

Query your data to select a condition for the alert.

👁 Image

For this alert, I just selected usage_system data for total CPU. Verify that you are getting the correct data in the graph below the query builder. Then select the function that you wish to reduce your data to and any thresholds you want to create for your alert criteria. For this example, I selected the last value and made the threshold above 0 to test the alert.

👁 Image

Set the alert evaluation behavior, or how frequently you want your alert to run. Make sure to also assign your alert to an evaluation group.

👁 Image

To send an alert to contact points like email or Slack, navigate to the Contact Points page under Alerts & IRM. Click + Add contact point. 

👁 Image

The easiest way to test your alert is likely through email. However, you can also join our InfluxDB Community Slack channel. There is a #notifications-testing channel with this webhook URL that you can use if you want to test a Slack notification.

👁 Image

Click Test to test your alert and verify that you’re getting a message in the InfluxDB Community Slack channel or your email.

Final Thoughts

Grafana is a robust visualization and alerting tool. While this tutorial just scratches the surface of what’s possible with both Grafana and InfluxDB, it’s worth exploring them further to see how they can improve your workflows and business operations.

InfluxData is the creator of InfluxDB, the leading time series platform. More than 1,900 customers use InfluxDB to collect, store, and analyze all time series data at any scale. Developers can query and analyze their time-stamped data to predict, respond, and adapt in real-time.
Learn More
The latest from InfluxData
TRENDING STORIES
Anais Dotis-Georgiou is a Product Manager for InfluxData with a passion for making data beautiful with the use of data analytics, AI and machine learning. She takes the data that she collects, does a mix of research, exploration, and engineering...
Read more from Anais Dotis-Georgiou
InfluxData sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
👁 Image
Join the millions of developers using InfluxDB to predict, respond, and adapt in real-time.