Latest Dynatrace
The following table describes the required permissions.
To list all notebooks
To list all notebooks you own
To list all notebooks that are shared with you
To list all ready-made notebooks
Go to Notebooks.
In the Notebooks panel, select Ready-made notebooks.
Alternatively, you can select All notebooks and then change the filter at the top of the table from All notebooks to Ready-made.
For more about ready-made documents, see Ready-made documents.
The easiest way to search for a notebook is through the global search.
The search can be triggered from any context using the Cmd/⌘+K keyboard shortcut. Notebooks with matching titles will show up in the results.
Alternatively, select All notebooks in the sidebar. Enter a search term to list only matching notebooks.
To create a new notebook
Now you need to create one or more sections within your notebook. For details, see Create a section.
To make a copy of a notebook
Alternatively, you can also trigger the same action in the Recently modified section of the sidebar. Select > Make a copy.
To add your notebook to the Dock for easy access
To delete a notebook
Alternatively, you can also trigger the same action in the Recently modified section of the sidebar. Select > Delete.
To delete multiple notebooks, select All notebooks and use the buttons in the table.
Every notebook needs one or more sections.
To create a notebook section using Davis CoPilot to translate your natural language questions into DQL queries
Go to Notebooks and open or create a notebook you can edit.
Open the Add menu and select Davis CoPilot. A new Davis CoPilot notebook section is created with an empty prompt box.
In the prompt box, type a prompt. Try average cpu usage percentage by host
or see the examples displayed in the web UI for inspiration.
optional If your prompt doesn't specify the timeframe, you can still specify it in your section header. The default is Last 2 hours.
Select Run. Davis CoPilot generates and runs the query for you.
optional If you want to see the generated query before running it, open the menu next to the Run button and select Generate DQL only.
Review the results.
optional Select the Options in the section header to change the visualization (refer to the visualization-specific documentation for more information).
To have Dynatrace automatically select a visualization for your query, turn on Auto select in the upper-right corner of your visualization settings pane.
The Explore sections offer the easiest way to get started.
The fastest and easiest way to explore your data is with an Explore section. In a few seconds, you can find and analyze your logs, metrics, or business events. No DQL required!
To add data to a notebook
Open the Add menu and select DQL.
An empty section is added to the notebook and an Options side panel opens on the right.
In the section edit box, use the Dynatrace Query Language (DQL) to define your query.
Select Run to execute the DQL query. The
Notebooks app automatically visualizes the result.
Select Add title to add the title header to this notebook section.
Select a visualization to display your results in your preferred format. Adjust visualization settings as needed.
To have Dynatrace automatically select a visualization for your query, turn on Auto select in the upper-right corner of your visualization settings pane.
To add code fetching data for your notebook using Dynatrace functions
To have Dynatrace automatically select a visualization for your query, turn on Auto select in the upper-right corner of your visualization settings pane.
To add a Markdown-formatted annotation to a notebook
Open the Add menu and select Markdown.
Enter your text. Use Markdown to format your text and add links and images.
You can use the toolbar to insert common elements like a heading, bold text, or a link:
Italics: wrap text in single asterisks (*like this*
) to get italics like this.
Bold: wrap text in double asterisks (**like this**
) to get bold text like this.
Strikethrough: wrap text in double tildes (~~like this~~) to get strikethrough (crossed out) text like this.
Blockquote: start a line with >
to get blockquotes, where everything before you press Enter is quoted.
Code:
like this
.code text
).Headings: start a line with one or more #
characters to create headings.
Horizontal line: to visually separate sections of your annotation, add a horizontal line with three dashes (---
).
Lists: each line of an unordered (bulleted) list starts with an asterisk (*
):
* Line 1* Line 2
Alternatively, you can use a dash (-
):
- Line 1- Line 2
An ordered (numbered) list starts with a number and a period (1.
) followed by a space and then your text:
1. The first line of my procedure.2. The second line of my procedure.3. The third line of my procedure.
If you use 1.
for each line number, the lines are renumbered automatically when you display the notebook.
Tables: to add a table, define the headers, the column formatting row, and then the rows of data you want to display
| Header 1 | Header2--- | ---content2 | content2
Special characters: you can use any printable characters, including emojis such as 😃 and 🌍 and ❤️.
Links: to link to a website, use this format:
[Example text label](https://www.example.com)
Here's a link to the [Dynatrace website](www.dynatrace.com).
Images: to link to a picture, use this format:

Here are some of the people who started [Dynatrace](https://www.dynatrace.com).
Several data and code snippets are available out of the box. Use our predefined DQL or code snippets to quickly start your data analytics journey.
To get started based on a snippet
In a notebook, select Add.
Scroll down to the Start with a snippet section and choose one of the snippets. For example, select the Fetch logs snippet, which is displayed in a preview panel.
When you select a snippet, a notebook section is created for the snippet.
Edit the query or code (depending on the snippet type you selected) and the visualization settings as needed.
Select Run to see results.
The list of available snippets is long and growing. Create a new notebook and try them out.
When you find something interesting:
To see the edit commands for a section, select the section. If you have edit permission, the edit commands are displayed.
The available edit options will vary depending on the type of section you're editing.
Davis CoPilot section: type a plain-text prompt in the edit box and select Run to get an answer.
Explore data section: These sections are a great shortcut to results. To learn more about Explore sections, see Explore data.
DQL section
Code section
Markdown section
To filter data for a section, you can specify segments for a section.
In the action bar for that section, select and, in Filter by segments, select a segment.
If the segment requires an additional value selection, select it now.
To add another segment, select Segment. Repeat this step for each segment you want to add for the selected notebook section.
Select Apply to apply the selection.
To open the Options panel (where you can select and customize a visualization for your section)
To move a section up or down within your notebook
Alternate method:
To create a copy of a section within your notebook
Use Open with to copy a notebook section to another document (such as a different notebook or a dashboard).
An easy way to start a new notebook is to use Open with to copy reusable sections from existing notebooks to a new notebook and then edit the copied sections in the new notebook.
To copy a notebook section to a dashboard (as a dashboard tile)
In the notebook, select the notebook section that you want to copy to a dashboard.
Select > Open with.
In the Open with… window, select the Dashboards option.
A Select destination box is displayed.
In Select destination, you can create a new dashboard or select an existing dashboard.
Select Add.
The dashboard opens with the selected section copied into it.
To remove a section from your notebook
To copy a link to a section
To download (export) the result of the current dashboard tile or notebook section
Hover over the tile or section to display available commands.
On the command bar, select More actions > Download result > [format].
The result is downloaded to a local file in the selected format.
The selection of download formats available depends on the visualization.
Some visualizations offer no option for downloading the result.
When you open a document (dashboard or notebook) for which you don't have write permission, you can still edit the document during your session. After you're finished, you have two options:
Example:
Go to Notebooks, list the ready-made notebooks, and select the Getting started notebook.
It says Ready-made in the upper-left corner, next to the document name.
Select the Line chart section and then select Options.
Change the visualization from Line to Area.
Now you are offered two buttons: Save as new and Discard changes.
Use the updated notebook as needed. You have full edit access for this session.
When you're finished, select what to do with your changes:
To run a code section
After you run a code section, you can clear the code results
To display the code in a code section
Select the section.
Select Show code.
The code is displayed in a panel above the section.
To hide the code panel again, select Hide code.
To run a query section
After you run a query section, you can clear the query results
To display the query in a query section
Select the section.
Select Show query.
The query is displayed in a panel above the section.
To hide the query panel again, select Hide query.
To export a notebook
Alternatively, you can also trigger the same action in the Recently modified section of the sidebar. Select > Export as JSON.
To import a notebook from a JSON file
Select All notebooks in the document sidebar.
In the upper-left corner of the page, select Upload. A file browser window opens.
Find and open the notebook JSON definition file.
The definition is imported as a new notebook and listed on the Notebooks page with Last modified set to the import date and time.
When you create a document (dashboard or notebook), you are the owner. To give ownership of the document to another Dynatrace user
Open the document menu and select Change owner.
Find and select a new owner, and then select Change owner.
When you change the document owner, you immediately lose access to the document.
After the transfer is complete, the new owner will receive email about the document ownership transfer.
To print a notebook or export it to PDF
Open your notebook.
optional Prepare your notebook sections for printing.
For example:
From the notebook menu, select Print view.
A printable view of the notebook is displayed on a Print preview page with print settings displayed at the top.
Select the page size (A4
or US Letter
) and orientation (Portrait
or Landscape
), and then select Print.
The notebook is displayed in a print options window. Each notebook section prints to a new page.
Make additional print settings as needed, and then select Save or Print (depending on the print destination) to finish.
Landscape
mode, a table may overlap the next section.To analyze data using Davis analyzers
Explore a timeseries.
In your document (dashboard or notebook)
Select to add a new section or tile, and then select Metrics to explore metrics.
In Select metric, select Infrastructure > CPU > CPU usage %.
Set Split by to host.name
.
Set Limit to the maximum number of series to analyze. Davis analyzer currently supports analysis up to 1000 series.
You should get something like this:
Run the query.
In the options panel on the right, scroll down and expand Davis AI.
On the Davis AI panel, set Analyzers to the analyzer you want to use, and then configure the analyzer.
For details, see Anomaly detection configuration.
For details, see Anomaly detection configuration.
For details, see Anomaly detection configuration.
2
, the last two data points are ignored and a forecast for these points is returned as well.For details, see Davis® forecast analysis.
You can use the default values or turn on Show advanced properties to fine-tune these settings.
By default, the analyzer is not enabled. To enable it, turn on the switch at the top of the edit panel (switch from Davis analyzer is not active to Davis analyzer is active).
To view the results, select the Davis AI analysis visualization and expand the Davis AI analysis chart section to review or change the visualization-specific settings:
The Davis AI analysis visualization has two sections: chart and visualization. You can use the Visible sections setting to display either or both of them.
To detect when CPU usage percent exceeds 70 percent, in your document (dashboard or notebook)
Select to add a new section or tile, and then select Metrics to explore metrics.
In Select metric, select Infrastructure > CPU > CPU usage %.
Set Split by to host.name
.
Set Limit to the maximum number of series to analyze. Davis analyzer currently supports analysis up to 1000 series.
Select Run.
In the edit panel, expand Davis AI.
In the Analyzers list, select Static threshold anomaly detection.
Set Threshold to 70
(enter a value) and Alert condition to Alert if metric is above (default).
Activate the analyzer: at the top of the edit panel, switch from Davis analyzer is not active to Davis analyzer is active.
To view the results, select the Davis AI analysis visualization. Expand the Davis AI analysis chart section to see visualization-specifc settings.
In the Davis AI analysis chart section, set Visible sections to All.
Review the results.
In this example, we selected the hosts that exceeded the threshold.
CPU usage %
) for each selected host.From your notebook, you can trigger a series forecast analysis based on Davis AI.
In this example, we issue the following query:
timeseries avg(dt.host.cpu.usage), by:{ dt.entity.host }
and then run a forecast for a time series selected in the results.
In a notebook, select > DQL.
Enter a query such as timeseries avg(dt.host.cpu.usage), by:{ dt.entity.host }
to chart time series.
Select Run query.
Hover over the required time series in the sidebar and select > Filter and forecast.
The query is automatically updated to filter by the selected time series and the chart is extended to show the projection for the selected series.
For details, see Davis® forecast analysis.