Skip to content

[FEATURE] Bits AI Integration #102

@Tagliatti

Description

@Tagliatti

Is your feature request related to a problem?

When investigating incidents or exploring metrics, I often need to context-switch between the Datadog UI and the terminal. Bits AI provides powerful natural language querying capabilities in the web UI, but there's no way to leverage this from the command line where I'm already working with pup.

Describe the solution you'd like

Add support for Bits AI integration, allowing users to query Datadog using natural language directly from the terminal.

Key capabilities:

• Ask questions about infrastructure, metrics, logs, and traces in plain English
• Get AI-generated summaries of current system state
• Investigate incidents without leaving the terminal
• Receive actionable insights and suggested next steps

Describe alternatives you've considered

• Using the Datadog web UI: Works, but breaks the terminal workflow and requires context-switching
• Building custom queries manually: Time-consuming and requires memorizing query syntax for each product (logs, metrics, APM, etc.)
• Third-party AI wrappers: Security concerns with API keys and lack of native Datadog context

Additional context

Bits AI is now GA and supports multiple Datadog products including Logs, APM, Infrastructure, and Incidents. Having CLI access would be particularly valuable for:

• SREs during incident response (already in terminal running commands)
• Quick investigations without opening a browser
• Scripting and automation workflows
• Remote/SSH sessions where browser access is limited

Reference: https://docs.datadoghq.com/bits_ai/

Proposed command syntax (if applicable)

# Basic natural language query
pup bits "what's causing high latency in the checkout service?"

# Interactive mode
pup bits --interactive

# Query specific product context
pup bits --scope logs "show me errors in production from the last hour"
pup bits --scope apm "which endpoints are slowest?"

# Output formats
pup bits "summarize current incidents" --output json

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions