Skip to content

Commit

Permalink
Merge pull request #18843 from planteater/codestream-terraform
Browse files Browse the repository at this point in the history
Update intro article to reference CodeStream
  • Loading branch information
rhetoric101 authored Oct 3, 2024
2 parents c33ffc3 + fed43b5 commit 3d35e6f
Showing 1 changed file with 9 additions and 4 deletions.
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.

0 comments on commit 3d35e6f

Please sign in to comment.