Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update intro article to reference CodeStream #18843

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
---
title: Getting started with New Relic and Terraform
metaDescription: Learn how to provision New Relic resources using [Terraform](https://www.terraform.io/).
freshnessValidatedDate: never
freshnessValidatedDate: 2024-09-30
redirects:
- /docs/more-integrations/terraform/terraform-intro
---

[Terraform](https://www.terraform.io/) 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 <InlinePopover type="dashboards"/> and alerts.
[Terraform](https://www.terraform.io/) 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 <InlinePopover type="dashboards"/> and alerts. In this guide you will learn how to set up New Relic <InlinePopover type="alerts"/> with Terraform, but you can review the [New Relic Terraform provider documentation](https://registry.terraform.io/providers/newrelic/newrelic/latest/docs) to learn how to set up other New Relic resources.

In this guide, you learn how to set up New Relic <InlinePopover type="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](https://landing.google.com/sre/sre-book/chapters/monitoring-distributed-systems/#xref_monitoring_golden-signals) of monitoring introduced in [Google’s Site Reliability Engineering book](https://landing.google.com/sre/sre-book/toc/index.html):
<Callout variant="tip">
Simplify your workflow by bringing the Terraform documentation right into your IDE with New Relic's CodeStream IDE extension. Add templates for any New Relic resource type with just a click.

Install CodeStream for [VS Code](https://marketplace.visualstudio.com/items?itemName=CodeStream.codestream), [Visual Studio](https://marketplace.visualstudio.com/items?itemName=CodeStream.codestream-vs-22) or any [JetBrains IDE](https://plugins.jetbrains.com/plugin/12206-new-relic-codestream), and then look for the wrench icon at the top of the CodeStream pane.
</Callout>

You'll start by provisioning an alert policy, four alert conditions, and a notification channel. The four alert conditions are based on the [four golden signals](https://landing.google.com/sre/sre-book/chapters/monitoring-distributed-systems/#xref_monitoring_golden-signals) of monitoring introduced in [Google’s Site Reliability Engineering book](https://landing.google.com/sre/sre-book/toc/index.html):

* <DNT>**Latency:**</DNT> The amount of time it takes your application to service a request.
* <DNT>**Traffic:**</DNT> The amount of requests your system receives.
Expand Down Expand Up @@ -463,4 +469,3 @@ As your team evaluates the alerting system you’ve put in place, you’ll find
You may also want to consider automating this process in your CI/CD pipeline. Use Terraform's [recommended practices guide](https://www.terraform.io/docs/cloud/guides/recommended-practices/index.html) to learn more about their recommended workflow and how to evolve your provisioning practices.
</Callout>

Congratulations! You're officially practicing observability-as-code. Review the [New Relic Terraform provider documentation](https://registry.terraform.io/providers/newrelic/newrelic/latest/docs) to learn how you can take your configuration to the next level.
Loading