How to Create a Datadog Dashboard - Steps to Build Your First One
A Datadog dashboard takes shape quickly when you decide on one question you want to answer before placing widgets. From creating a new dashboard and placing widgets, through how values are reduced and where colors change, rates computed with formulas, and how to share it, to how to read JSON diffs, this article lays out the steps in the order you build your first dashboard.
Start Your First Dashboard from One Question You Want to Check Every Morning
The first thing to decide when creating a dashboard is not the type of graph but "what this one dashboard answers." Datadog's getting started guide also makes knowing the questions you usually ask yourself the starting point, and recommends not packing separate questions into a single dashboard (source: Getting Started with Dashboards). Choose one question you can write in a single sentence, such as "Is the production API healthy right now?" or "Was last night's batch delayed?" Whether to make it a grid layout or a free-form layout is left to the dashboards explanation. Before building from a blank page, search the Dashboards List for the name of an integration you use (Redis, for example). If a ready-made dashboard marked Preset holds even half of the answer, duplicating it with Clone dashboard under Configure and trimming it down finishes faster. A clone is a copy separated from the original, so it does not affect the original dashboard.
Four Steps from Creating a New Dashboard to Placing the First Widget
The procedure begins with creating a new dashboard from the Dashboards List. How to choose widget types is summarized in the widget glossary entry, so here we follow only the flow of placing the first widgets for one question (as of October 2026).
- Step 1: Create a new dashboard in the Dashboards List and give it a name that makes the question obvious
- Step 2: Choose widgets from Add Widgets. As an example, start with three: the current value (Query Value), the trend (Timeseries), and the top items (Top List)
- Step 3: For each widget, decide the data source (metrics, logs, traces, and so on) and the query, and give it a title that makes its purpose clear. If left blank, a title is set automatically from what you selected
- Step 4: Gather closely related widgets into a Group, rearrange them by dragging, and then save
The query in step 3 is assembled from left to right on the Edit tab of the graph editor.
| Part | Location in the UI | Default and options |
|---|---|---|
| Metric | The Metric field | Suggestions show the unit, type, interval, and number of tag values |
| Filter | from | The default is (everywhere). Narrow it by host or tag |
| Aggregation method | Next to from | The default is avg by. Can be changed to max by / min by / sum by |
| Grouping | Next to the aggregation method | Choosing host splits the lines by host |
| Function | The Σ icon | Use rollup and others to decide how and at what interval values are combined over time |
When you plot a long period on one dashboard, values along the time axis are combined automatically. In the example in the official documentation, a metric the Agent collects every 15 to 20 seconds amounts to 4,320 points in a day, and when you display one day's worth, it is rounded automatically. In other words, a line left at avg by reflects a state of "fine when averaged over everything." If your question is one where you do not want to miss a single clogged host, change the aggregation to max by or split the lines by host. How to divide things with Groups or tabs as the widgets multiply is also in the same widget glossary entry.
Step 5 Is Deciding, for Each Widget, How Values Are Reduced and Where Colors Change
The widgets you place can be drawn with their defaults, but shaping them to answer the question requires per-widget settings. Query Value is a widget that reduces the points in a period to a single value; choose the reduction from avg / min / sum / max / last, and for data that supports it, you can also use percentiles such as p75 and p90 (as of October 2026; source: Query Value Widget). Adding conditional formatting (Visual Formatting Rules) lets you change the background or text color, or an image, depending on the value.
| Widget | What to decide | Points to watch |
|---|---|---|
| Query Value | The reduction and conditional formatting | Write condition values in the metric's original unit |
| Timeseries | Whether to draw it as lines, areas, or bars, and markers | The last interval is drawn shaded as partial data |
| Timeseries | Automatic labels | Up to three per series. They do not appear when there are more than six series |
| Top List | Stacked or flat, relative or absolute | Relative display is only for count data |
The pitfall is units. Even if Query Value shows a metric whose original unit is nanoseconds converted into seconds, you write conditional formatting values in nanoseconds. If you enter 2 to match what is shown on screen, the condition is met as soon as the value exceeds 2 nanoseconds, and the widget is always the same color. Timeseries markers are a feature that draws a horizontal line, in the color of a warning state, at a value or range you set. If you draw the same value as the monitor's threshold, people looking at the graph will not misread where the danger line is. If you set the colors to the Consistent palette, the color for each tag value is kept across widgets, so when you follow the same host across multiple widgets, you can connect them by eye.
Default Time Frames, and Computing Rates and Differences with Formulas
How to add variables when you want to switch one dashboard by environment or service, and how to share them via URL, are in the template variable glossary entry, and how to align the tags that this relies on is in unified service tagging. Step 6 is the handling of time. The time range you choose in Default timeframe under Configure applies to everyone who opens that dashboard. For a dashboard with a relative time range that does not need constant updating, Pause Auto-Refresh lets you turn off auto-refresh by default. When you want to show a different time frame for each widget, for example with Query Value, use the Global time setting to choose whether to follow the overall time frame or to use its own (as of October 2026). What gets closer to the question than lining up raw values is computation between queries.
| What you want to show | How to write it | Example from the official documentation |
|---|---|---|
| Ratio | Line up a and b with Add Query, and put a / b in Formula | jvm.heap_memory / jvm.heap_memory_max |
| Ratio of logs | Likewise, a / b | status:error / status:info |
| The higher of two | maximum() | Compare system.cpu.user across two zones |
| Time elapsed since the last report | Subtract from time() | time() - max:backup.last_completed_timestamp{*} |
| Difference from the previous period | The Change Indicator in Query Value | Compare with Previous Period or with the previous day / week / month |
When you want to show only the result of the formula, click the query's letter label to hide a or b. A constraint worth remembering is that you cannot compute between formulas. Formulas are not assigned letters, so rewrite a value such as "a ratio of ratios" as a single formula. If you just want to line them up as separate lines, you can separate them with commas, as in a, b, c, but this notation is for graphs only and cannot be used if you move the same query to a monitor.
Share Externally with a Public URL, and Limit Who Can Edit for Each Dashboard
In step 7, decide how to share it. The types of sharing and the thinking behind taking inventory of them are in the dashboards explanation, so here only the operations are listed. For people without a Datadog account, or for showing it on a large screen, create a public URL with Configure Public URL in the export menu. Organization members can view it by default, so passing them the URL is enough. To limit who can edit, choose Restrict Access under Permissions in Configure, add the roles, teams, and users allowed to edit, and save. At this point, you cannot save unless you include at least one role you belong to. Restricting viewing itself is available on request on paid plans (as of October 2026; source: Configure).
Step 8 Is Keeping It as JSON and Reading the Diff Before Importing
Once a dashboard is done, keep its definition locally as JSON. Both the dashboard and each individual widget have a JSON representation, and you can view and edit a widget's JSON on the JSON tab of the editor (as of October 2026; source: Getting Started with Dashboards). A list of the operations for exporting, importing, and restoring after deletion is in the dashboards explanation. Importing replaces the entire contents, so for a dashboard that several people edit, read the before-and-after diff of the exported JSON before importing. The four keys to look at in the diff are as follows.
- 1. type and title - Which widgets were added and which were removed
- 2. queries and formulas inside requests - Whether the formulas that answer the question have changed
- 3. comparator and value in conditional_formats - Whether the boundaries where colors change are written in the original unit
- 4. live_span in time - Whether only that widget has its own time frame
If you manage it as code, Terraform's datadog_dashboard_json is the shortcut. Its only required argument is dashboard, which takes the JSON definition as a string, so you can pass the JSON you built in the UI and exported as is (source: datadog_dashboard_json Resource). Installing the provider is covered in the Terraform provider setup steps. If you want to prepare a dashboard of the same shape for every new project or incident, you can also pass JSON to the Dashboards API to create it (source: Getting Started with Dashboards).
Open It Again the Next Morning and Remove the Widgets You Did Not Use for the Question
Once you start using your first dashboard, the things you want to put on it multiply. Where to draw the line with a Notebook, which keeps the graphs and findings you picked up during an investigation, is in the dashboards explanation. A request such as "notify me when this value exceeds this level" should be moved into a monitor rather than assigning someone to watch the screen. A dashboard works only when a person comes to look at it, while a monitor works even when nobody is looking. If you enable change notifications for yourself, an event is left in the Events Explorer when someone rewrites a widget (source: Configure). Open the dashboard you built as is the next morning, and check whether it answers the question you first wrote down as soon as you open it. Remove the widgets you did not use for the answer, and if there are many widgets you cannot remove, split the question into two and build a second dashboard.