Azure resources generally have good integration with App Insights for logs and APM (Application performance monitoring). But sometimes your monitoring stack is with a 3rd Party company, like New Relic, Zabbix or Datadog.

In this guide, we are going to how to log every single request hitting an Azure API management into Datadog.

What is Datadog?

Datadog is a monitoring service for cloud-scale applications, providing monitoring of servers, databases, tools, and services, through a SaaS-based data analytics platform. [Wikipedia]

Logging from API Management

The base documentation where I learned this logging flow.

1. Add the event hub namespace

2. Create the event hub in the namespace:

3. Enable the diagnostic logging:

4. Create the Function app:

5. Add the configuration:

6. Deploy the function code:

7. Test the function in isolation

Conclusion

That isn’t a straight forward integration, but hopefully, I showed that is possible to integrate API management logs with Datadog, and that a complex manual setup like this can be automated using Terraform.

#datadog #azure

Datadog — Azure API Management logs
1.70 GEEK