Skip to content

Conversation

@j8d
Copy link

@j8d j8d commented Nov 21, 2025

Summary

Adds support for the DATADOG_STORAGE_TIER environment variable to enable querying logs from Datadog's Flex tier storage.

Problem

On November 17, 2025, we moved to the Flex tier. The current MCP server has no way to specify which storage tier to query, so all log searches default to the indexes tier and return no results for Flex-only logs.

Solution

  • Read DATADOG_STORAGE_TIER environment variable at module initialization
  • Validate against supported values: indexes, online-archives, flex
  • Pass storageTier to both get_logs and get_all_services Datadog API calls when configured
  • Fully backwards compatible - if env var is not set, behavior is unchanged

Usage

Set in MCP config:

{
  "mcpServers": {
    "mcp-server-datadog": {
      "env": {
        "DATADOG_STORAGE_TIER": "flex"
      }
    }
  }
}

@j8d j8d requested a review from winor30 as a code owner November 21, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant