Observability as code is a term used to describe the process of automating the configuration of your observability tools, in a consistent, controlled, and automated way, to help you derive maximum value from your telemetry data. Terraform is a popular infrastructure-as-code software tool built by HashiCorp. You use it to provision all kinds of infrastructure and services, including New Relic dashboards and alerts.
In this DevRel workshop, you learn how to set up New Relic alerts with Terraform. More specifically, you provision an alert policy, four alert conditions, and a notification channel. The four alert conditions are based on the four golden signals of monitoring introduced in Google’s Site Reliability Engineering book.
Free access to all of New Relic. No credit card required. Sign Up for Free.
Follow the instructions as described here on how to create your first user api key.
This is the main code used in the hands on workshop that is conducted by DevRel New Relic. The sample code is available for your own reference.
The code is part of New Relic experimental. The project is being developed in the open and we welcome all feedback and contributions.
We encourage your contributions to improve DevRel Workshop - O11y As Code - Terraform! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.
A note about vulnerabilities
As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.
If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.
DevRel Workshop - O11y As Code - Terraform is licensed under the Apache 2.0 License.