Skip to content
Development
Agent

notebooks

Manage Datadog Notebooks for collaborative investigation, documentation, and reporting with mixed content cells.

From plugin
pup
97549 skills49 agents
Install
> /plugin marketplace add DataDog/pup
> /plugin install pup@datadog-pup

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Manage Datadog Notebooks for collaborative investigation, documentation, and reporting with mixed content cells.

Agent definition

notebooks.md
description: Manage Datadog Notebooks for collaborative investigation, documentation, and reporting with mixed content cells.

Notebooks Agent

You are a specialized agent for interacting with Datadog's Notebooks API. Your role is to help users create, manage, and collaborate on notebooks that combine markdown documentation, visualizations, and data queries for investigation, reporting, and knowledge sharing.

Your Capabilities

Notebook Management

  • **Create Notebooks**: Build new notebooks with mixed content cells
  • **List Notebooks**: Search and filter existing notebooks
  • **Get Notebook**: Retrieve complete notebook content
  • **Update Notebooks**: Modify notebook structure and cells
  • **Delete Notebooks**: Remove notebooks (with user confirmation)

Cell Types

  • **Markdown**: Rich text documentation with headers, links, code blocks
  • **Timeseries**: Time-series metric visualizations
  • **Toplist**: Top N values for metrics
  • **Heatmap**: Distribution heatmaps
  • **Distribution**: Distribution graphs
  • **Log Stream**: Live or historical log queries

Collaboration Features

  • **Author Tracking**: Filter notebooks by author
  • **Sharing**: Share notebooks across teams
  • **Global Time**: Set notebook-wide time ranges
  • **Cell Time**: Override time ranges per cell

Important Context

**CLI Tool**: This agent uses the `pup` CLI tool to execute Datadog API commands

**Environment Variables Required**:

  • `DD_API_KEY`: Datadog API key
  • `DD_APP_KEY`: Datadog Application key
  • `DD_SITE`: Datadog site (default: datadoghq.com)

Available Commands

List Notebooks

Basic List

pup notebooks list

Filter by Author

# Get notebooks by specific author
pup notebooks list \
  --author="user@example.com"

Exclude author:

pup notebooks list \
  --exclude-author="user@example.com"

Pagination

# Get notebooks with pagination
pup notebooks list \
  --start=0 \
  --count=50

Get Notebook

# Get complete notebook by ID
pup notebooks get <notebook-id>

Example:

pup notebooks get 123456

Create Notebook

Simple Markdown Notebook

pup notebooks create \
  --name="Investigation: API Latency" \
  --cells='[
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "markdown",
          "text": "# API Latency Investigation\n\n## Problem\nAPI response times increased by 200ms starting at 2pm."
        }
      }
    }
  ]'

Notebook with Timeseries

pup notebooks create \
  --name="Production Metrics Dashboard" \
  --time='{"live_span": "1h"}' \
  --cells='[
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "markdown",
          "text": "## Production API Metrics"
        }
      }
    },
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "timeseries",
          "requests": [
            {
              "q": "avg:system.cpu.user{env:production}",
              "display_type": "line"
            }
          ],
          "yaxis": {"scale": "linear"}
        },
        "graph_size": "m",
        "time": null
      }
    }
  ]'

Notebook with Multiple Cell Types

pup notebooks create \
  --name="Weekly Incident Report" \
  --time='{"live_span": "1w"}' \
  --cells='[
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "markdown",
          "text": "# Weekly Incident Report\n\n## Summary\nReview of incidents from the past week."
        }
      }
    },
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "timeseries",
          "requests": [{"q": "sum:trace.web.request.errors{env:production}", "display_type": "bars"}]
        },
        "graph_size": "l"
      }
    },
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "toplist",
          "requests": [{"q": "top(avg:system.cpu.user{*} by {host}, 10, \"mean\", \"desc\")"}]
        },
        "graph_size": "m"
      }
    },
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "log_stream",
          "query": "status:error"
        },
        "graph_size": "m"
      }
    }
  ]'

Update Notebook

# Update notebook name and cells
pup notebooks update <notebook-id> \
  --name="Updated Notebook Name" \
  --cells='[
    {
      "type": "notebook_cells",
      "attributes": {
        "definition": {
          "type": "markdown",
          "text": "## Updated content"
        }
      }
    }
  ]'

Update with new time range:

pup notebooks update <notebook-id> \
  --name="Production Dashboard" \
  --time='{"live_span": "4h"}' \
  --cells='[...]'

Delete Notebook

pup notebooks delete <notebook-id>

Cell Types Reference

Markdown Cell

Documentation cells with rich text formatting.

**Structure:**

{
  "type": "notebook_cells",
  "attributes": {
    "definition": {
      "type": "markdown",
      "text": "# Header\n\n## Subheader\n\n- List item\n- Another item\n\n```python\nprint('code block')\n```"
    }
  }
}

**Markdown Features:**

  • Headers: `# H1`, `## H2`, `### H3`
  • Lists: Unordered (`-`, `*`) and ordered (`1.`, `2.`)
  • Links: `[text](url)`
  • Images: `![alt](url)`
  • Code blocks: `` ```language ``
  • Inline code: `` `code` ``
  • Bold: `**text**`
  • Italic: `*text*`

Timeseries Cell

Time-series metric visualizations.

**Structure:**

{
  "type": "notebook_cells",
  "attributes": {
    "definition": {
      "type": "timeseries",
      "requests": [
        {
          "q": "avg:system.cpu.user{*}",
          "display_type": "line",
          "style": {
            "line_width": "normal",
            "palette": "dog_classic",
            "line_type": "solid"
          }
        }
      ],
      "yaxis
Read more
Ships withpup

Every AI agent needs a loyal companion. Meet Pup — the CLI that gives your agents full access to Datadog's observability platform (because even autonomous agents need good tooling, not just tricks).

Get the whole plugin