Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
When you have Datadog App Builder apps embedded in your dashboards, you can take direct actions on your resources, and all of the relevant data and context is immediately available. Link your app with the dashboard’s time frame and template variables to dynamically set the scope of the app’s actions, which allows you to carry out actions in your environment at any needed scope.
This page describes embedding App Builder apps, which you build in Datadog with a low-code, drag-and-drop editor. To embed an app built with Datadog Apps, which you write locally as code in React and TypeScript, see Embed Apps.
Add apps to your dashboard
To add a previously published app to your dashboard:
Open the dashboard where you want to add the app.
Click Add Widgets to open the widget tray.
Select the Apps tab, then drag the App widget onto the dashboard.
In the App Editor modal, select an app and provide it with a title.
The Apps tab also includes a Created by Datadog section with ready-made apps for common tasks, such as managing AWS or Azure resources and PagerDuty or LaunchDarkly configurations. Drag one of these apps onto your dashboard to add a working app without building one yourself.
Sync your app with dashboard template and time frame variables
You can link your app to template variables anywhere that supports template expressions in your queries or app elements. You can also link your app to the time frame that is selected on your dashboard.
When you change the value of a template variable or time frame on the dashboard, the linked app elements update automatically. For example, when you select an instance_id value using the template variable dropdown or directly from a graph, the instance_id value is added to the app’s filter. This allows you to perform actions on that specific instance:
Template variable examples
To populate a select component with a list of all available template variables, add the following template expression to your select component’s Options field:
To add a button that sets the value of a date range picker component to the dashboard’s time frame, perform the following steps:
Add a date range picker component to your app and name it “dateRangePicker0”.
Add a button to your app.
Under Events, fill in the following values:
Event: click
Reaction: Set Component State
Component: dateRangePicker0
State Function: setValue
Value: ${global?.dashboard?.timeframe}
Save and publish your app.
Add apps to Catalog
Add a published app to the Self-Service Actions dashboard in Catalog to provide developers with a central place to provision infrastructure, scaffold services, remediate issues, and more.
To add to Self-Service Actions, first ensure your app is published and permissions are defined. Next, you can click Add to Self-Service Actions.
Once added, you can view and use your app in Catalog.
Further reading
Documentation, liens et articles supplémentaires utiles: