Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add content for new notebook page #27382

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ code_language_ids:
otel: "OpenTelemetry API"
status_legacy: "Status Page (Legacy)"
status_page: "Status Page"
notebooks_legacy: "Notebooks (Legacy)"
notebooks_new: "Notebooks (New)"
branch: ""

signupclass: sign-up-trigger
Expand Down
263 changes: 3 additions & 260 deletions content/en/notebooks/_index.md
Original file line number Diff line number Diff line change
@@ -1,262 +1,5 @@
---
title: Notebooks
aliases:
- /graphing/notebooks/
further_reading:
- link: "https://www.datadoghq.com/blog/incident-management-templates-notebooks-list/"
tag: "Blog"
text: "Create and navigate a documentation library"
- link: "https://www.datadoghq.com/blog/collaborative-notebooks-datadog/"
tag: "Blog"
text: "Tell data-driven stories with Collaborative Notebooks"
- link: 'https://www.datadoghq.com/blog/incident-postmortem-process-best-practices/'
tag: 'Blog'
text: 'Best practices for writing incident postmortems'
- link: "https://www.datadoghq.com/blog/observability-pipelines-transform-and-enrich-logs/"
tag: "blog"
text: "Transform and enrich your logs with Datadog Observability Pipelines"
cascade:
algolia:
rank: 70
---

## Overview

Notebooks combine graphs and text in a linear, cell-based format. They help you explore and share stories with your data by creating postmortems, investigations, runbooks, documentation, and more.

## Getting started

1. From the [Notebook List][1] page, click **+ New Notebook**.

2. Click the **Save Notebook** button. </br>
**Note**: A new notebook is not saved by default.

3. Add new cells to your notebook with [supported graph and text content](#types-of-content).

4. [Configure cells](#cell-configuration).

## Collaboration

{{< img src="notebooks/collaboration.png" alt="Indicators of users viewing the notebook and making live edits" style="width:100%;">}}

Notebooks support real-time collaboration. Presence indicators show who is viewing your notebook at any time, as well as real-time edits to notebook cells. Changes made to a notebook appear automatically, without the need to refresh.

Everyone on your team can open any notebook, but a notebook can only be modified or deleted by any Datadog role with the `Notebooks Write` permission.

### Commenting

To add a comment, select some text or hover over a graph. The **Add comment** icon is displayed to the right of the cell. From the comments you can also notify a member on your team through the `@mention` feature. Click the three vertical dots in the top-right corner of your comment to edit or delete a comment you wrote. View or re-open resolved comments in the Comment History side panel, available in the Notebook cog menu.

Notebook authors receive email notifications for new comments on their notebooks, and commenters are notified for replies to their comments. Manage your notification settings through `Notifications` in the notebook cog menu.

### View mode

{{< img src="notebooks/read_mode.png" alt="View mode dropdown menu" style="width:100%;">}}

You can switch between modes from within the Notebook by selecting the dropdown at the top right of your notebook.

- **Editing**: make changes to the notebook.

- **Viewing**: contents are Read Only, preventing users from making unwanted edits to existing configurations and information.

- **Presenting**: share the contents of the Notebook in a display format where each cell appears as a slide. Presentation mode supports graph interactions such as tooltips and legends.

## Share notebooks

Click on the cog icon in the upper right of a notebook to see sharing options. Notebooks can be exported to PDF, Markdown, or any document editor.

To copy a notebook into a document editor, click **Copy formatted contents**. Paste into a document editor like Google Docs or Microsoft Word to see notebook contents, including graphs, with original formatting.

### Import or export notebook JSON

Use **Export Notebook JSON** to download a JSON file containing the definition of your notebook. **Import Notebook JSON** overwrites all content on the notebook with the content of the uploaded JSON.

### Link to individual cells

To copy the URL for a specific cell, click the cell's **Share** menu and select **Link directly to cell**. Direct linking is available for both visualization and Markdown cells.

When a user visits the URL for a specific cell, the notebook is opened to show the cell at the top of the viewport. Links are absolute. A cell's URL remains the same even if it is moved to a new position within the notebook.

## Add images to notebooks

<div class="alert alert-info">Only PNG, JPG, JPEG, and GIF file types are supported. Uploads have a max file size of 4MB.</a></div>

You can add images to your notebook using either the [image cell](#image-cell) or the [Markdown editor](#markdown-editor).

### Image cell

This approach places the image in a separate cell from your text, and provides options for resizing, aligning, and captioning the image. Images uploaded by the image cell are hosted by Datadog.

To add an image, click the **Image** cell option in the **Add New Cell** menu.

{{< img src="notebooks/image_cell.png" alt="Image cell in the Add New Cell menu of cells" style="width:70%;" >}}

You can use any of the following options to upload an image to be hosted by Datadog:
- Drop an image file into the upload area
- Click **Choose File** and locate the image in your file directory
- Paste a publicly accessible URL for the image

Click the icons on the cell action tray to adjust the size, alignment, add a caption for the image cell, or view the image in full screen mode.

{{< img src="notebooks/notebooks_image_edit_action_tray.png" alt="Image cell action tray to adjust image alignment and add a caption" style="width:70%;" >}}

### Markdown editor

This approach places the image inline with your text, but does not provide options for resizing the image.

Enter the edit mode on any Markdown cell and use any of the following options to add the image:
- Drop an image file into the text cell area.
- Copy and paste the image directly into the text cell area.
- Hyperlink an external image using the image widget in the header or by referencing the [official Markdown guide][2]. **Note**: This option does not upload the image to be hosted by Datadog.

You can preview the image in the Preview tab before saving it to your notebook.

## Notebook List

{{< img src="notebooks/notebook_list.png" alt="notebook list previewing the cell types of a selected notebook" style="width:100%;">}}

The [Notebook List][1] allows you to view and search previously created notebooks. Each notebook's name, creator, and last modified date are displayed. Notebooks are grouped by:

* **Your Notebooks**: Notebooks created by you.
* **All Notebooks**: All Notebooks in your organization.
* **[Notebook Type](#notebook-types)**: Group notebooks by type.

Hover over the Preview icon for any Notebook to see a preview of the contents, including widget types and Markdown. To open the Notebook in [View Mode](#view-mode), hover over the notebook and click **Open notebook in view mode** on the right.

## Template gallery
From the [Template Gallery][3], see ready-to-use templates which you can create new notebooks from. Templates include an Incident Response postmortem, an Incident Report, and SLO Specification. You can also create a new custom template to build reusable notebook structures.

## Version history
From a notebook, click the **Configure** icon and click **Version history** to open the Version History side panel. You can preview, restore, or clone your notebook's version history. For more information, see the [Version History guide][4].

## Notebook configuration

### Time frames

By default, all graph cells are linked to the global time frame set in the notebook header.

To view a different time frame, select an option in the global time picker, or scrub on a graph directly. The notebook URL will update to reflect this new time frame without saving it to the notebook.

**Note**: Clicking and dragging to zoom in on a graph does not unlock the cell from the global time. It changes the notebook's global time instead.

{{< img src="notebooks/set_default_time.png" alt="Save notebook global time with Set Default Time button" style="width:100%;">}}

To save this time as the notebook's default, click **Set Default Time**. To reset your global time back to the previously saved default global time, click the reset button.

Individual cells can be unlinked from the global time and set to an independent time frame.

{{< img src="notebooks/cell_time.png" alt="Cell Time Selector with the cell unlinked from global time" style="width:100%;">}}

To view a different time frame on a single cell, edit the cell and use the toggle to unlink it from Global Time. Change the time frame using the time picker or by scrubbing on the graph. Changes made in edit mode are saved automatically when you click **Done**. To discard your changes, click **Cancel** instead of **Done**.

### Notebook types

{{< img src="notebooks/add_notebook_type.png" alt="Add Type button highlighted in a Notebook" style="width:100%;">}}

Notebooks can be grouped into types, giving you quick access to relevant information. Notebooks built from other products like Incident Management or Monitors may automatically assign a type. Hover over the notebook title to display the option to add or edit the type. Click **+ Add Type**, or to edit the type, click the pencil icon that appears next to it on hover.

### Graph snapshots

Notebooks can be set to automatically take snapshots of graphs that might expire. Enable this by clicking **Turn on snapshots** in the cog menu of any notebook. Use the cog menu to view snapshots or turn off automatic snapshots. Turn off automatic snapshots to remove access to existing snapshots.

{{< img src="notebooks/cog_snapshots.png" alt="Cog menu option to turn on snapshots" style="width:100%;">}}

Notebooks with snapshots enabled automatically capture a static image of any graphs with a fixed time range (for example, `Aug 18, 12:00 am - Aug 19, 11:59 pm`). These snapshots update when the graph is updated, as long as the new graph also has a fixed time range. Changing the graph to a global time range (like `Past 1 Hour`) removes the snapshot.

You can preview the existing snapshot on any fixed-time graph by hovering over the camera icon while in edit mode.

To share a version of your notebook with snapshots, from the cog menu, click **View snapshots**. Copy the URL, or append `&view=snapshots` to the URL of any notebook that has snapshots enabled.

### Template variables

Notebooks support template variables. Dynamically scope visualizations by adding and selecting template variable values. For more information, see [Template Variables][5].

### Cell configuration

To add cells, use the **+** button that appears to the left of the cell, or select an option from the **Add New Cell** section at the bottom of the notebook. Use the action tray that appears above the cell on hover to share, clone, or delete cells. Graph cells can be exported to a dashboard, or downloaded as a PNG or a CSV of graph data. Changes made in edit mode are saved automatically when you click **Done**. To discard your changes, click **Cancel** instead of **Done**.

#### Edit options

Click on **More options** in the inline editor of a widget to edit widget options. Add details like event overlays, markers, and y-axis controls.

#### Layout options

In a Notebook cell, click **Edit** to view the cell configuration in edit mode. You can also see the available layout options, which vary based on the cell content type, but include the following:

* **Graph size**: Choose between `XS`, `S`, `M` (default), `L`, and `XL`.
* **Graph legend**: Uncheck the box to hide the legend. Legends are automatically disabled for `XS` and `S` graphs.
* **Grouping**: Display one graph per tag value to see small multiples of your visualization.

{{< img src="notebooks/edit_cell_action_menu.png" alt="The graph settings option of a notebook cell in edit mode displaying layout options for graph size, legend, and grouping configuration" style="width:100%;">}}

**Note**: Changing any of these settings only affects the targeted cell.

#### Types of content

Notebooks support visualizations and text cells. Text cells are formatted with [Markdown][6], which enables the use of headings, subheadings, links, images, lists, and code blocks. Notebooks also support diagrams formatted with [MermaidJS][7].

Graphs in notebooks support all Datadog data sources: metrics, log events, Indexed Spans, live processes, network traffic, RUM events, profiling metrics, security signals, and more. Graphs are created with the Datadog query editor. Notebooks support:

* [Text][8]
* [Images](#add-images-to-cells)
* [Timeseries][9]
* [Top List][10]
* [Table][11]
* [Query Value][12]
* [Heatmap][13]
* [Distribution][14]
* [List][15]
* [Profiling Flame Graph][16]
* [Funnel][17]
* [Pie][18]
* [Treemap][16]
* [Geomap][19]
* [SLO][20]

### Limit edit access

By default, all users have full access to notebooks.

Use granular access controls to limit the [roles][21] that may edit a particular notebook:
1. While viewing a notebook, click on the cog in the upper right. The settings menu opens.
1. Select **Permissions**.
1. Click **Restrict Access**.
1. The dialog box updates to show that members of your organization have **Viewer** access by default.
1. Use the dropdown to select one or more roles, teams, or users that may edit the notebook.
1. Click **Add**.
1. The dialog box updates to show that the role you selected has the **Editor** permission.
1. Click **Save**

**Note:** To maintain your edit access to the notebook, the system requires you to include at least one role that you are a member of before saving.

To restore general access to a notebook with restricted access, follow the steps below:
1. While viewing the notebook, click on the cog in the upper right. The settings menu opens.
1. Select **Permissions**.
1. Click **Restore Full Access**.
1. Click **Save**.

## Further Reading

{{< partial name="whats-next/whats-next.html" >}}

[1]: https://app.datadoghq.com/notebook/list
[2]: https://www.markdownguide.org/basic-syntax/#images-1
[3]: https://app.datadoghq.com/notebook/template-gallery
[4]: /notebooks/guide/version_history
[5]: /dashboards/template_variables/
[6]: https://daringfireball.net/projects/markdown/
[7]: https://mermaid.js.org/
[8]: /dashboards/widgets/free_text/
[9]: /dashboards/widgets/timeseries/
[10]: /dashboards/widgets/top_list/
[11]: /dashboards/widgets/table/
[12]: /dashboards/widgets/query_value/
[13]: /dashboards/widgets/heatmap/
[14]: /dashboards/widgets/distribution/
[15]: /dashboards/widgets/list/
[16]: /dashboards/widgets/treemap/
[17]: /dashboards/widgets/funnel/
[18]: /dashboards/widgets/pie_chart/
[19]: /dashboards/widgets/geomap/
[20]: /dashboards/widgets/slo/
[21]: /account_management/rbac/
type: multi-code-lang
external_redirect: /notebooks/notebooks_legacy
---
Loading
Loading