Skip to content

Commit 6960db6

Browse files
authored
Merge pull request #4 from l0k0ms/patch-1
Readme update
2 parents 8a2bc16 + 918c82b commit 6960db6

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed
Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
1-
# Azure functions (Private Beta)
1+
# Datadog-Azure function (Private Beta)
22

3-
Function used to forward Azure logs, including Activity and Diagnostic logs from EventHub.
4-
This is currently in Private beta, instructions and code are subject to modifications.
3+
The Datadog-Azure function is used to forward Azure logs to Datadog, including Activity and Diagnostic logs from EventHub.
54

6-
# Quick Start
5+
**This is currently in Private beta, instructions and code are subject to modifications.**
76

8-
The provided NodeJs script must be deployed into your Azure Functions service. We will explain how in this step-by-step tutorial.
7+
## Quick Start
98

10-
## 1. Create a new EventHub triggered function
9+
The provided Node.js script must be deployed into your Azure Functions service. Follow the tutorial below to learn how to do so:
1110

12-
- Expand your function app and click the + button next to Functions. If this is the first function in your function app, select Custom function. This displays the complete set of function templates.
13-
- In the search field type `Event Hub` and choose `Event Hub Trigger`
14-
- Select the `Javascript` language in the right menu
15-
- Enter a name for the function
16-
- Add the wanted `Event Hub connection` or create a new one if you haven't have one already
17-
- Select the `Event Hub consumer group` and the `Event Hub Name` you want to pull logs from
11+
### 1. Create a new EventHub triggered function
1812

19-
## 2. Provide the code
13+
- Expand your function application and click the `+` button next to `Functions`. If this is the first function in your function application, select `Custom function`. This displays the complete set of function templates.
14+
- In the search field type `Event Hub` and choose `Event Hub Trigger`.
15+
- Select the `Javascript` language in the right menu.
16+
- Enter a name for the function.
17+
- Add the wanted `Event Hub connection` or create a new one if you haven't have one already.
18+
- Select the `Event Hub consumer group` and the `Event Hub Name` you want to pull logs from.
2019

21-
- Copy paste the code of the function
22-
- In the `Integrate` part, make sure the `Event Hub Cardinality` is set to `Many`
20+
### 2. Provide the code
21+
22+
- Copy paste the code of the [Datadog-Azure function](./index.js)
23+
- In the `Integrate` part, `Event Hub Cardinality` must be set to `Many`.
2324

2425
## Parameters
2526

2627
- **API KEY**:
2728

28-
There are 2 possibilities to set your Datadog's API key (available in your Datadog platform):
29+
There are 2 possibilities to set your [Datadog's API key](https://app.datadoghq.com/account/settings#api):
2930

30-
1. Replace `<your-api-key>` in the code with the API Key value
31+
1. Replace `<DATADOG_API_KEY>` in the code with your API Key value.
3132
2. Set the value through the `DD_API_KEY` environment variable
3233

3334
- **Custom Tags**:
3435

35-
You have two options to add custom tags to your logs (tags must be a comma-separated list of strings):
36+
You have two options to add custom tags to your logs:
3637

3738
- Manually by editing the function code to add the tag list to the variable `DD_TAGS`
3839
- Automatically with the `DD_TAGS` environment variable
40+
41+
Learn more about Datadog tagging in our main [Tagging documentation](https://docs.datadoghq.com/tagging/).

azure/activity_logs_monitoring/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Copyright 2018 Datadog, Inc.
55

66
var tls = require('tls');
7-
var DD_API_KEY = process.env.DD_API_KEY || '<your-api-key>';
7+
var DD_API_KEY = process.env.DD_API_KEY || '<DATADOG_API_KEY>';
88
var DD_URL = process.env.DD_URL || 'lambda-intake.logs.datadoghq.com';
99
var DD_TAGS = process.env.DD_TAGS || '';
1010
var DD_PORT = process.env.DD_PORT || 10516;

0 commit comments

Comments
 (0)