Skip to content

DataDog

Connect HolmesGPT to DataDog for log analysis and metrics access from your DataDog dashboards.

Logging Toolsets

Only one logging toolset should be enabled at a time. If you enable this toolset, disable the default kubernetes/logs toolset.

Available Log Sources:

💡 Choose one: Only enable one logging toolset at a time for best performance.

Prerequisites

  1. A DataDog API key with log access permissions
  2. A DataDog Application key

You can find these in your DataDog account under Organization Settings > API Keys and Application Keys.

Configuration

First, set the following environment variables:

export DD_API_KEY="your-datadog-api-key"
export DD_APP_KEY="your-datadog-app-key"

Then add the following to ~/.holmes/config.yaml, creating the file if it doesn't exist:

toolsets:
  datadog/logs:
    enabled: true
    config:
      site: "datadoghq.com"  # or datadoghq.eu for EU, etc.

  kubernetes/logs:
    enabled: false  # Disable default Kubernetes logging
holmes:
  additionalEnvVars:
    - name: DD_API_KEY
      value: "<your DataDog API key>"
    - name: DD_APP_KEY
      value: "<your DataDog application key>"
  toolsets:
    datadog/logs:
      enabled: true
      config:
        site: "datadoghq.com"  # or datadoghq.eu for EU, etc.

    kubernetes/logs:
      enabled: false  # Disable default Kubernetes logging

Update your Helm values and run a Helm upgrade:

helm upgrade robusta robusta/robusta --values=generated_values.yaml --set clusterName=<YOUR_CLUSTER_NAME>

Validation

Test your configuration:

holmes ask "show me recent application errors"

Capabilities

Tool Name Description
datadog_fetch_logs Fetch logs from DataDog for specified time ranges and filters
datadog_search_logs Search logs in DataDog using query patterns