Integration types
Aiven supports two types of Datadog integrations:- Datadog Metrics - Send service metrics directly to Datadog
- Datadog Logs - Forward service logs via Rsyslog integration
Datadog metrics integration
Prerequisites
- A Datadog account
- A Datadog API key
- A running Aiven service
Add Datadog integration endpoint
You can use the Datadog integration endpoint for multiple services.Configure endpoint
Enter the following details:
- Endpoint name - Reference name for this integration
- API key - Your Datadog API key
- Site - Your Datadog site (shown in your Datadog website URL)
- Custom tags - (Optional) Add custom tags to send with metrics
Enable metrics integration on a service
For Aiven for Apache Kafka services, you can customize the metrics sent to Datadog.
Custom tags
The Datadog integration supports adding tags to your metrics data:- Global tags - Apply to all metrics from all services using the endpoint
- Per-service tags - Apply only to metrics from specific services
Datadog logs integration
The Rsyslog integration is used to send service logs to Datadog.Prerequisites
- A Datadog API key
- A running Aiven service
Add Syslog integration endpoint for Datadog
Configure server
Set the Server based on your Datadog region:
- US region:
intake.logs.datadoghq.com - EU region:
tcp-intake.logs.datadoghq.eu
Configure log template
In the Log Template field, enter:Replace:Don’t edit the values surrounded by
DATADOG_API_KEY- Your Datadog API keyAIVEN_PROJECT_NAME- Your Aiven project name
Datadog correlates metrics and logs by hostname. The integration appends the project name to the hostname to disambiguate between services with the same name in different projects. Without the project name, no log data is lost.
%, such as %msg%, as these are used in constructing the log line.Example:Enable logs integration on a service
Regional configuration
Datadog operates in multiple regions with different endpoints:| Region | Metrics Site | Logs Server | Logs Port |
|---|---|---|---|
| US | datadoghq.com | intake.logs.datadoghq.com | 10516 |
| EU | datadoghq.eu | tcp-intake.logs.datadoghq.eu | 443 |
| US3 | us3.datadoghq.com | - | - |
| US5 | us5.datadoghq.com | - | - |
| AP1 | ap1.datadoghq.com | - | - |
Troubleshooting
Metrics not appearing
- Verify your Datadog API key is correct and active
- Confirm the Datadog site matches your account region
- Check that the integration is enabled on your service
- Allow a few minutes for initial data to appear
Logs not streaming
- Ensure TLS is enabled in the Rsyslog configuration
- Verify the server and port match your Datadog region
- Confirm the log template includes your Datadog API key
- Check that the Rsyslog integration is enabled on your service
Hostname correlation issues
- Include the project name in the hostname for proper correlation
- Verify custom tags are configured correctly
- Check that service names are unique or properly tagged