Skip to content

Datadog

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

Important: Disable Default Logging Toolset

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. Create 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

After making changes to your configuration, run:

holmes toolset refresh

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