diff --git a/content/en/dashboards/guide/_index.md b/content/en/dashboards/guide/_index.md index b1f9b8f0b9cb4..6040aed786326 100644 --- a/content/en/dashboards/guide/_index.md +++ b/content/en/dashboards/guide/_index.md @@ -32,6 +32,7 @@ cascade: {{< nextlink href="/dashboards/guide/apm-stats-graph" >}}Configuring an APM stats graph{{< /nextlink >}} {{< nextlink href="/dashboards/guide/version_history" >}}Version History{{< /nextlink >}} {{< nextlink href="/dashboards/guide/graphing_json/" >}}Graphing with JSON{{< /nextlink >}} + {{< nextlink href="dashboards/guide/getting_started_with_wildcard_widget" >}}Getting started with the Wildcard Widget{{< /nextlink >}} {{< nextlink href="/dashboards/guide/using_vega_lite_in_wildcard_widgets/" >}}Using Vega-Lite with Wildcard Widgets in Datadog{{< /nextlink >}} {{< nextlink href="/dashboards/guide/wildcard_examples" >}}Wildcard Widget Examples{{< /nextlink >}} {{< nextlink href="/dashboards/guide/graphing_json/" >}}Graphing with JSON diff --git a/content/en/dashboards/guide/getting_started_with_wildcard_widget.md b/content/en/dashboards/guide/getting_started_with_wildcard_widget.md new file mode 100644 index 0000000000000..f4ad6c7ff9781 --- /dev/null +++ b/content/en/dashboards/guide/getting_started_with_wildcard_widget.md @@ -0,0 +1,111 @@ +--- +title: Getting Started with the Wildcard Widget +further_reading: +- link: "/dashboards/widgets/wildcard/" + tag: "Documentation" + text: "Wildcard widget Overview" +- link: "/dashboards/guide/wildcard_examples/" + tag: "Guide" + text: "Wildcard widget example visualizations" +- link: "/dashboards/guide/using_vega_lite_in_wildcard_widgets/" + tag: "Guide" + text: "Using Vega-Lite in Wildcard widgets" +--- + +## Overview + +The Wildcard widget is a powerful and flexible visualization tool in Datadog that lets you build custom visual representations using the [Vega-Lite grammar][1]. + +### Tutorial Objectives + +By the end of this tutorial, you will be able to: + +* Use Vega-Lite concepts to define visualizations in Wildcard widgets. +* Import a query from an existing widget. +* Enable inter-widget interaction using a context menu. + +### Prerequisites + +* A Datadog account with access to [Notebooks][2] or [Dashboards][3]. +* You have telemetry such as APM trace data or request duration metrics. +* You are familiar with basic Datadog widgets and dashboards and can [add a widget and edit it][4]. + +## Step 1: Import an existing query + +Rather than starting from scratch, import a request from an existing widget. Copy the query from a widget you're interested in exploring further (such as a Top List). To get started, you can use widgets from your [prebuilt dashboards][5]. + +1. Navigate to an existing dashboard with a useful widget (Top List of database queries). +2. Use the widget menu or use the keyboard shortcut (Ctrl/CMD + C) to copy the widget. +3. In a new dashboard, add a Wildcard widget. +4. In the editor, clear the default query ({{< img src="/icons/cancel-circle.png" alt="X icon to clear the query" inline="true" width="40px">}}). +5. Paste the copied request with Ctrl/Cmd + V. The query and associated fields carry over automatically. + +{{< img src="/dashboards/guide/analyze_p50_vs_p95_latency_with_the_wildcard_widget/import_widget_walkthrough.mp4" alt="Walkthrough of importing a widget query into the Wildcard widget in Datadog" video=true >}} + +## Step 2: Refine the query + +In the query editor: + +1. Expand the **Data Preview** to identify the fields returned from the query. +2. Next to your query, click **As** to add an alias to your query. This adds clarity, for example, rename `p50:trace.http.request{*} by {service}`→ `p50`. + +{{< img src="/dashboards/guide/analyze_p50_vs_p95_latency_with_the_wildcard_widget/refine_query_walkthrough.mp4" alt="Walkthrough of refining a query in the Wildcard widget, including renaming fields and adding a P95 formula" video=true >}} + +## Step 3: Auto-generate a visualization + +At the top of the query editor: + +1. Click the **Define Visual** tab. +2. Press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux) to open the **Command Palette**. +3. Select **Auto-select chart**. + +{{< img src="/dashboards/guide/analyze_p50_vs_p95_latency_with_the_wildcard_widget/command_palette.mp4" alt="Your image description" video=true >}} + +Datadog automatically creates a visualization based on your query. + +