New Relic

The New Relic provider for Pulumi can be used to provision any of the cloud resources available in New Relic. The New Relic provider must be configured with credentials to deploy and update resources in New Relic.

See the full API documentation for complete details of the available New Relic provider APIs.

Setup

The New Relic provider supports several options for providing access to New Relic credentials. See the New Relic setup page for details.

Example

const newrelic = require("@pulumi/newrelic")

const policy = new newrelic.AlertPolicy("my-policy");
import * as newrelic from "@pulumi/newrelic";

const policu = new newrelic.AlertPolicy("my-policy");
import pulumi_newrelic as newrelic

policy = newrelic.AlertPolicy("my-policy")
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	newrelic "github.com/pulumi/pulumi-newrelic/sdk/v4/go/newrelic"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		policy, err := newrelic.NewAlertPolicy(ctx, "my-policy", &newrelic.AlertPolicyArgs{})
		if err != nil {
			return err
		}

		return nil
	})
}

using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Newrelic;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var policy = new AlertPolicy("my-policy");
        });
}

Libraries

The following packages are available in packager managers:

The New Relic provider is open source and available in the pulumi/pulumi-newrelic repo.