Skip to content

Commit

Permalink
fixing Lambda cat
Browse files Browse the repository at this point in the history
  • Loading branch information
zuluecho9 committed Aug 24, 2021
1 parent e8fe76a commit 1ea148b
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 62 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
---
title: Link your AWS and New Relic accounts
tags:
- Serverless function monitoring
- AWS Lambda monitoring
- Enable Lambda monitoring
- Account Linking
title: "Enable Lambda monitoring step 1: Link your AWS and New Relic accounts"
metaDescription: Linking your AWS account with New Relic for Lambda Monitoring
redirects:
- /docs/serverless-function-monitoring/aws-lambda-monitoring/get-started/enable-serverless-monitoring-using-lambda-layer
---

This is one step of [enabling New Relic's AWS Lambda monitoring](/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/enable-aws-lambda-monitoring).

When you link your AWS account to New Relic, you're granting permission to New Relic to create an inventory of your AWS account, and gather CloudWatch metrics for your Lambda functions. Resources in your AWS account then show up as entities in the [explorer](/docs/new-relic-one/use-new-relic-one/ui-data/new-relic-one-entity-explorer-view-performance-across-apps-services-hosts), decorated with config information.

<CollapserGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
---
title: Configure serverless monitoring for AWS Lambda
tags:
- Serverless function monitoring
- AWS Lambda monitoring
- Enable Lambda monitoring
metaDescription: Read about how to set up alerts and custom events when using our Serverless monitoring for AWS Lambda.
title: "Enable Lambda monitoring: Next steps"
metaDescription: After enabling New Relic's AWS Lambda monitoring, you can set up alerts and custom events.
redirects:
- /docs/serverless-function-monitoring/aws-lambda-monitoring/get-started/configure-new-relic-serverless-aws-lambda
- /docs/serverless-function-monitoring/aws-lambda-monitoring/get-started/configure-monitoring-aws-lambda-new-relic-serverless
- /docs/serverless-function-monitoring/aws-lambda-monitoring/get-started/configure-serverless-monitoring-aws-lambda
---

After you set up serverless monitoring for AWS Lambda, you can add additional configuration to fine-tune your data.
After you [enable serverless monitoring for AWS Lambda](/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/enable-aws-lambda-monitoring), you can add additional configuration to fine-tune your data.

## Set up alerts [#alerts]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Enable monitoring for AWS Lambda
tags:
- Serverless function monitoring
- AWS Lambda monitoring
- Enable Lambda monitoring
metaDescription: Read about how to enable Serverless monitoring for AWS Lambda.
metaDescription: Get started enabling New Relic's serverless monitoring for AWS Lambda.
---

There are several steps to enabling Lambda monitoring:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
---
title: Legacy manual instrumentation
tags:
- Serverless function monitoring
- AWS Lambda monitoring
- Enable Lambda monitoring
translate:
- jp
metaDescription: Read about how to install and enable New Relic monitoring for Amazon AWS Lambda.
metaDescription: Legacy instructions for manually enabling New Relic monitoring for Amazon AWS Lambda.
redirects:
- /docs/install-enable-new-relics-monitoring-aws-lambda
- /docs/net-core-new-relic-monitoring-aws-lambda
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
---
title: Instrument a Lambda function
tags:
- Serverless function monitoring
- AWS Lambda monitoring
- Enable Lambda monitoring
- Instrumentation
title: "Enable Lambda monitoring step 2: Instrument a Lambda function"
metaDescription: Instrumenting your first Lambda function
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
---
title: Instrument your own functions
tags:
- Serverless function monitoring
- AWS Lambda monitoring
- Enable Lambda monitoring
- Instrumentation
title: "Enable Lambda monitoring step 3: Instrument your own functions"
metaDescription: Instrumenting your own Lambda functions
---

This is one step of [enabling New Relic's AWS Lambda monitoring](/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/enable-aws-lambda-monitoring).

<Callout variant="important">
Because there are several steps to integration, it's important that you test your account link by deploying and
testing [an example](/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/instrument-example/) function before instrumenting your own code.
Because there are several steps to integration, it's important that you test your account link by deploying and testing [an example](/docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/instrument-example/) function before instrumenting your own code.
</Callout>

## Deployment strategies [#strats]

There are many different deployment strategies for Lambda functions. New Relic offers direct support for several,
but we cannot cover every option. At its core, New Relic Lambda instrumentation relies on the Lambda service itself,
rather than any particular deployment strategy or tool, so we're confident that it can be made to work in your use case.
There are many different deployment strategies for Lambda functions. New Relic offers direct support for several, but we cannot cover every option. At its core, New Relic Lambda instrumentation relies on the Lambda service itself, rather than any particular deployment strategy or tool, so we're confident that it can be made to work in your use case.

### `newrelic-lambda` CLI quickstart [#quickstarts]

Expand All @@ -26,26 +20,21 @@ New Relic.

To install or upgrade the New Relic instrumentation layer, run:

```
newrelic-lambda layers install --nr-account-id <var><a href="/docs/accounts/accounts-billing/account-setup/account-id">YOUR_NR_ACCOUNT_ID</a></var> --function my-function --upgrade
```
```
newrelic-lambda layers install --nr-account-id <var><a href="/docs/accounts/accounts-billing/account-setup/account-id">YOUR_NR_ACCOUNT_ID</a></var> --function my-function --upgrade
```

This command automatically finds the newest available layer for your Lambda's region and runtime.

This is a great way to quick-start instrumentation, and this tool can easily be integrated into your existing CI/CD
processes. However, since it modifies existing Lambda function resources, when you deploy a code update to your
function, you may inadvertently remove the New Relic instrumentation. Be sure to re-run the command above after every
update, or (even better) integrate the layer and associated configuration with your existing deployment process.
This is a great way to quick-start instrumentation, and this tool can easily be integrated into your existing CI/CD processes. However, since it modifies existing Lambda function resources, when you deploy a code update to your function, you may inadvertently remove the New Relic instrumentation. Be sure to re-run the command above after every update, or (even better) integrate the layer and associated configuration with your existing deployment process.

Note that the CLI can operate on many functions in a batch: use `--function all`, `--function installed`, or
`--function not-installed` to operate on all functions in a region, or only those with or without existing
New Relic instrumentation.

### Continuous deployment [#cont]

In the long term, it's usually less work to integrate New Relic into your existing continuous deployment
process. Instead of running the CLI after updating your function, you can integrate New Relic into your continuous
deployment framework.
In the long term, it's usually less work to integrate New Relic into your existing continuous deployment process. Instead of running the CLI after updating your function, you can integrate New Relic into your continuous deployment framework.

<CollapserGroup>
<Collapser
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
title: Update serverless monitoring for AWS Lambda
tags:
- Serverless function monitoring
- AWS Lambda monitoring
- Enable Lambda monitoring
metaDescription: How to update our Serverless monitoring for AWS Lambda.
redirects:
- /docs/serverless-function-monitoring/aws-lambda-monitoring/get-started/update-lambda-monitoring
Expand Down
14 changes: 8 additions & 6 deletions src/nav/full-stack-observability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2569,9 +2569,9 @@ pages:
path: /docs/serverless-function-monitoring
pages:
- title: AWS Lambda monitoring
ath: /docs/serverless-function-monitoring/aws-lambda-monitoring
path: /docs/serverless-function-monitoring/aws-lambda-monitoring
pages:
- title: Intro to Lambda monitoring
- title: Get started with Lambda
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/get-started
pages:
- title: Intro to Lambda monitoring
Expand All @@ -2583,13 +2583,15 @@ pages:
- title: Enable Lambda monitoring
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring
pages:
- title: 1. Account linking
- title: Intro to enabling Lambda monitoring
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/enable-aws-lambda-monitoring
- title: Step 1. Account linking
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/account-linking
- title: 2. Instrumentation examples
- title: Step 2. Instrumentation examples
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/instrument-example
- title: 3. Instrument your functions
- title: Step 3. Instrument your functions
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/instrument-your-own
- title: 4. Next steps
- title: Step 4. Next steps
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/configure-serverless-monitoring-aws-lambda
- title: Legacy manual instrumentation
path: /docs/serverless-function-monitoring/aws-lambda-monitoring/enable-lambda-monitoring/enable-serverless-monitoring-aws-lambda-legacy
Expand Down

0 comments on commit 1ea148b

Please sign in to comment.