By proactively monitoring your application, you can resolve issues before they affect your customers. Using New Relic with Pulumi, you can quickly create alerts that you share with your teams, ensuring that you are proactively monitoring your stack.
In this post, you’ll learn the basics of the following:
- What is Pulumi
- Pulumi versus Terraform
Then you can jump into a hands-on tutorial where you create alerts using Pulumi and New Relic. If you already know the basics of Pulumi and Terraform, you can jump right into Getting started with New Relic and Pulumi and make an alert using TypeScript and Node.js.
What is Pulumi?
Pulumi is an infrastructure as code framework for full-stack developers and cloud engineers who are interested in using their favorite programming language to manage the lifecycle of their cloud resources. In addition to being able to deploy your infrastructure and workloads to cloud providers, Pulumi supports observability as code. Using APIs from New Relic, you can embed your observability strategy into production and other environments using your favorite programming language.
That means you can also use Pulumi to create alerts.
Pulumi vs Terraform
If you’re already using Terraform, or you’re not sure about either Pulumi or Terraform, it’s helpful to know how they’re similar and different. They are both open source infrastructure-as-code tools, but they do have a few key differences.
Terraform is more mature and has a wider range of resources. However, with Terraform, you do need to learn HashiCorp Configuration Language (HCL), a vendor-specific language.
Ultimately, the question is whether you prefer to use your favorite programming language to describe your infrastructure and cloud resources or a vendor-specific domain language. If you prefer to use your favorite programming language, go with Pulumi. If you don’t mind using HCL, then Terraform is also a good solution.
How to use Workflows to send Alerts using Pulumi
We have assembled a Getting Started Guide which shows you step-by-step how to use New Relic workflows to send alerts using Pulumi, TypeScript, and Node.js. In order to use the guide, you’ll just need to install the Pulumi CLI and have a recent version of Node.js installed.
The views expressed on this blog are those of the author and do not necessarily reflect the views of New Relic. Any solutions offered by the author are environment-specific and not part of the commercial solutions or support offered by New Relic. Please join us exclusively at the Explorers Hub (discuss.newrelic.com) for questions and support related to this blog post. This blog may contain links to content on third-party sites. By providing such links, New Relic does not adopt, guarantee, approve or endorse the information, views or products available on such sites.