Skip to Content
Technical Articles
Author's profile photo Fabio Saito

Application monitoring in SAP BTP using Datadog


This blog demonstrates how to deploy the Datadog agent with an app in SAP BTP to send metrics, traces, and logs to Datadog.

What is Datadog ?

Datadog is a popular cloud-based monitoring and analytics platform that helps organizations gain insights into the performance of their applications, infrastructure, and various other aspects of their digital systems.


  1. Sign up for a trial or free tier SAP BTP account
  2. Sign up for a Datadog account (there is a 14 days free trial account).
  3. Download the latest Cloud Foundry buildpack from Datadog GitHub.
    • The Cloud Foundry Buildpack is used to collect custom metrics, logs, traces, and profiles from your Cloud Foundry apps.It installs the Datadog Container Agent (a lightweight version of the Agent), Datadog Trace Agent for APM, and Datadog DogStatsD binary file in the container your app is running on.
    • Releases ยท DataDog/datadog-cloudfoundry-buildpack (
  4. Unzip the buildpackf file and set the necessary parameters in the datadog.yaml configuration file.
    • API_KEY > insert you api key created in the Datadog
    • SITE > insert the same domain as your Datadog account
    • APM_CONFIG – ENABLE > true
  5. Push the buildpack with your configuration file to a repository like GitHub so it can be referenced in your application in the next step
  6. Add the url of the buildpack to your application, it must be the first entry
    • Node.js application – add the buildpack to the manifest.json file

    • CAP application – add the buildpack to the mta.yaml file

  7. Instrument your application.
    • Install dd-trace (npm install dd-trace) to capture APM data

    • Add the tracer in code, it must come before importing any instrumented module

  8. Deploy your application to BTP Cloud Foundry
  9. Set application environment variables and restart it
  10. In the application logs, you can verify whether the Datadog agent has been started successfully or if any errors have occurred
  11. Run your application
  12. Log in to your Datadog account, you will find all the data that the Datadog sent to your account


http://Cloud Foundry Setup Guide (

http://Libraries (

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.