Skip to content

Add Datadog integration for metrics retrieval #37

@manthan787

Description

@manthan787

Description

Add basic Datadog integration to fetch metrics during investigations.

Why

Many SRE teams use Datadog for monitoring. Adding support would let RunbookAI pull relevant metrics when investigating incidents, improving context and diagnosis.

What to do

  1. Create a new file src/providers/datadog/client.ts
  2. Add configuration options in the config schema:
    providers:
      datadog:
        enabled: true
        apiKey: \${DATADOG_API_KEY}
        appKey: \${DATADOG_APP_KEY}
        site: datadoghq.com  # or datadoghq.eu
  3. Implement basic methods:
    • queryMetrics(query: string, from: Date, to: Date)
    • getServiceMetrics(serviceName: string)
  4. Add as a tool in src/tools/ for the agent to use

Resources

Getting Started

bun install
# Look at existing provider implementations
ls src/providers/

Good for learning the provider architecture!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions