Skip to content

DataDog

Datadog is a cloud-based monitoring and analytics platform that provides comprehensive visibility into the performance of your infrastructure, applications, and services. It integrates seamlessly with a wide range of technologies, enabling real-time monitoring of metrics, logs, and traces from a single dashboard.

Configure Martini Runtime to send Metrics to DataDog

This guide helps you configure Martini Runtime to send metrics to DataDog, making it easier to monitor your application's performance. If you encounter any issues, refer to the DataDog documentation or seek support from the DataDog community.

Create an Account

  • Go to DataDog Signup and create an account.
  • Get your credentials in the Settings by Navigating to the API Keys and Application Keys.

Martini Runtime Setup

  • Import the Micrometer Registry DataDog JAR file on Martini.
  • Configure the application.properties with the following properties:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    # Expose metrics endpoint
    management.endpoints.web.exposure.include=metrics
    
    # Enable sending metrics to DataDog
    management.metrics.export.datadog.enabled=true
    
    # DataDog API key
    management.metrics.export.datadog.api-key=<api-key>
    
    # DataDog application key
    management.metrics.export.datadog.application-key=<application-key>
    
    # Interval for sending metrics
    management.metrics.export.datadog.step=20s
    
    # Debugging purposes
    logging.level.io.micrometer.datadog=DEBUG
    
    # DataDog URI
    management.metrics.export.datadog.uri=https://api.us5.datadoghq.com
    

  • Replace <api-key> and <application-key> with your actual DataDog API and Application keys.

  • Restart Martini Runtime to apply the changes.

Query Metrics

Note

us5 in the URI may change depending on your DataDog account's region. Verify the correct URI for your region in your DataDog account settings.