Package Information
Documentation
n8n Nodes - DataDog StatsD Integration
This is an n8n community node that integrates DataDog with your n8n workflows, enabling you to send metrics, events, and service checks to DataDog using the StatsD protocol directly from your workflow automations.
DataDog is a monitoring and analytics platform for cloud-scale applications, while n8n is a fair-code licensed workflow automation tool that allows you to connect various services.
Table of Contents
Installation
To install this community node, please follow the official n8n community node installation guide.
Alternatively, you can install it using npm or yarn if you are managing your n8n instance manually:
# Using npm
npm install n8n-datadog-statsd
# Or using yarn
yarn add n8n-datadog-statsd
For development purposes, clone the repository and link it to your n8n installation:
git clone https://github.com/your-github-username/n8n-datadog-statsd.git
cd n8n-datadog-statsd
npm install
npm link
# In your n8n project directory
npm link n8n-datadog-statsd
Operations
This node allows you to send data to DataDog via the StatsD protocol. The following operations are supported:
- Metric: Send various types of metrics.
- Counter: Increment or decrement a counter.
- Gauge: Set a value for a gauge.
- Histogram: Send a value to a histogram to track distributions.
- Set: Count unique occurrences of a value.
- Distribution: Send a value to a distribution metric (global percentiles).
- Event: Send an event to DataDog.
- Includes options for title, text, date, priority, and alert type.
- Service Check: Send a service check status.
- Includes options for check name, status (OK, Warning, Critical, Unknown), and an optional message.
All operations support adding custom tags.
Credentials
To use this node, you need to configure DataDog StatsD
credentials in n8n. This involves providing:
- Host: The hostname or IP address of your DataDog agent (e.g.,
localhost
if running locally). - Port: The port your DataDog agent is listening on for StatsD metrics (default is
8125
). - Prefix (Optional): A prefix to be added to all metrics, events, and service checks sent (e.g.,
myapp.
). - Environment (Optional): An environment tag (e.g.,
production
,staging
) to be added to all data. - Global Tags (Optional): A comma-separated list of tags to be added to all data (e.g.,
region:us-east-1,team:backend
).
Compatibility
- This node has been tested with n8n version
1.0.0
and above. - It is designed to work with DataDog Agent v6 and v7.
Usage
- Install the Node: Follow the installation instructions above.
- Configure Credentials: In n8n, go to the Credentials section, add new
DataDog StatsD
credentials, and fill in your DataDog agent details. - Add the DataDog Node: In your n8n workflow, add the
DataDog
node. - Select Resource: Choose whether you want to send a
Metric
,Event
, orService Check
. - Configure Operation: Based on the selected resource, choose the specific operation (e.g.,
Counter
for Metric). - Fill in Parameters: Provide the necessary details like metric name, value, title, text, tags, etc.
- Execute Workflow: Run your workflow to send the data to DataDog.
Example: Sending a Page View Counter
- Resource:
Metric
- Operation:
Counter
- Metric Name:
webapp.page_views
- Value:
1
- Tags:
page:/home,lang:en
Example: Sending a Deployment Event
- Resource:
Event
- Title:
New Version Deployed
- Text:
Version 2.5.0 deployed to production.
- Priority:
Normal
- Alert Type:
Success
- Tags:
service:api,version:2.5.0
Screenshots
(Consider adding screenshots of the node configuration in n8n and an example metric in DataDog)
Example Node Configuration:
Example Metric in DataDog:
Resources
Version History
- 1.0.0 (June 9, 2025)
- Initial release.
- Support for Metrics (Counter, Gauge, Histogram, Set, Distribution).
- Support for Events.
- Support for Service Checks.
- Configurable DataDog agent host, port, prefix, environment, and global tags.