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

feat(serverless monitoring): Azure functions monitoring #19616

Merged
merged 10 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
@@ -0,0 +1,71 @@
---
title: Compatibility and requirements for instrumenting Azure functions
metaDescription: Azure function monitoring agent compatibility and requirements.
freshnessValidatedDate: never
---

Before you [instrument Azure functions](/docs/serverless-function-monitoring/aws-lambda-monitoring/instrument-lambda-function/configure-serverless-aws-monitoring), make sure your system meets the following requirements.

## Basic requirements [#requirements]


* A New Relic account with either an [admin role](/docs/accounts/original-accounts-billing/original-users-roles/users-roles-original-user-model/#roles) or have the **Infrastructure manager** [add-on role](/docs/accounts/original-accounts-billing/original-users-roles/users-roles-original-user-model#add-on).

* A <InlinePopover type="userKey" />.


<Callout variant="tip" title="NOTE">

Distributed tracing is supported for HTTP requests only.

Check notice on line 19 in src/content/docs/serverless-function-monitoring/azure-function-monitoring/compatibility-requirement-azure-monitoring.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/azure-function-monitoring/compatibility-requirement-azure-monitoring.mdx#L19

[Microsoft.Passive] 'is supported' looks like passive voice.
Raw output
{"message": "[Microsoft.Passive] 'is supported' looks like passive voice.", "location": {"path": "src/content/docs/serverless-function-monitoring/azure-function-monitoring/compatibility-requirement-azure-monitoring.mdx", "range": {"start": {"line": 19, "column": 21}}}, "severity": "INFO"}
</Callout>





## Supported runtimes

Based on your hosting environment, the following runtimes are supported.

Check notice on line 28 in src/content/docs/serverless-function-monitoring/azure-function-monitoring/compatibility-requirement-azure-monitoring.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/azure-function-monitoring/compatibility-requirement-azure-monitoring.mdx#L28

[Microsoft.Passive] 'are supported' looks like passive voice.
Raw output
{"message": "[Microsoft.Passive] 'are supported' looks like passive voice.", "location": {"path": "src/content/docs/serverless-function-monitoring/azure-function-monitoring/compatibility-requirement-azure-monitoring.mdx", "range": {"start": {"line": 28, "column": 59}}}, "severity": "INFO"}

<Tabs>
<TabsBar>

<TabsBarItem id="1">Linux</TabsBarItem>
<TabsBarItem id="2">Windows</TabsBarItem>
<TabsBarItem id="3">Containerized functions</TabsBarItem>

</TabsBar>
<TabsPages>


<TabsPageItem id="1">
* .NET: `dotnet10.30.0`

</TabsPageItem>


<TabsPageItem id="2">

* .NET: `dotnet10.30.0`

</TabsPageItem>

<TabsPageItem id="3">

* .NET: `dotnet10.30.0`
</TabsPageItem>

</TabsPages>

</Tabs>

## What's next

<DocTiles>
<DocTile title="Install and configure Azure functions monitoring" path="/docs/serverless-function-monitoring/azure-function-monitoring/install-serverless-azure-monitoring" >Get started with instrumentation and configuration for your Azure functions</DocTile>

</DocTiles>




Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
title: Environment variables for Azure function monitoring
metaDescription: "Configure environment variables to monitor your Azure functions with New Relic"
freshnessValidatedDate: never
tags:
- AWS Lambda
- Environment Variables
- Configuration
- Secrets Management
---
Environment variables are a way to store configuration and secrets outside of your code. The following tables display the mandatory variables and runtime specific variables that you can set to monitor your Azure functions with New Relic.

Check notice on line 11 in src/content/docs/serverless-function-monitoring/azure-function-monitoring/env-variables-azure.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] src/content/docs/serverless-function-monitoring/azure-function-monitoring/env-variables-azure.mdx#L11

[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.
Raw output
{"message": "[new-relic.ComplexWords] Consider using 'check' or 'watch' instead of 'monitor'.", "location": {"path": "src/content/docs/serverless-function-monitoring/azure-function-monitoring/env-variables-azure.mdx", "range": {"start": {"line": 11, "column": 194}}}, "severity": "INFO"}

<table>
<thead>
<tr>
<th>Environment variable</th>
<th>Default value</th>
<th>Options</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>`CORECLR_ENABLE_PROFILING`</td>
<td>`0`</td>
<td>`0`, `1`</td>
<td>**Required**: Enable profiling by setting this to `1`</td>
</tr>
<tr>
<td>`CORECLR_PROFILER`</td>
<td></td>
<td></td>
<td>**Required**: Set this to enable the .NET agent</td>
</tr>
<tr>
<td>`CORECLR_NEWRELIC_HOME`</td>
<td></td>
<td></td>
<td>**Required**: Set this to enable the .NET agent</td>
</tr>
<tr>
<td>`CORECLR_PROFILER_PATH`</td>
<td></td>
<td></td>
<td>**Required**: Set this to enable the .NET agent</td>
</tr>

<tr>
<td>`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED`</td>
<td>`true`</td>
<td>`true`, `false`</td>
<td>Generate traces by enabling distributed tracing</td>
</tr>

<tr>
<td>`NEW_RELIC_APP_NAME`</td>
<td></td>
<td></td>
<td>Set the application name, though it is not used in the New Relic UI</td>
</tr>
<tr>
<td>`NEW_RELIC_AZURE_FUNCTION_MODE_ENABLED`</td>
<td>`1`</td>
<td>`1`, `0`</td>
<td>Disable Azure functio mode by setting thr value to `0`</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error - function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

</tr>
<tr>
<td>`NEW_RELIC_LOG_DIRECTORY`</td>
<td></td>
<td></td>
<td>Modify the location where you want to strore the agent and profiler logs. </td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error - store

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

</tr>
<tr>
<td>`NEW_RELIC_LOG_LEVEL`</td>
<td>`info`</td>
<td>`info`, `debug`, `finest`</td>
<td>Set the agent log level</td>
</tr>
</tbody>
</table>


## What's next

<DocTiles>
<DocTile title="Install and configure Azure functions monitoring" path="/docs/serverless-function-monitoring/azure-function-monitoring/install-serverless-azure-monitoring" >Get started with instrumentation and configuration for your Azure functions</DocTile>

</DocTiles>
Loading
Loading