# @roadiehq/backstage-plugin-datadog

Latest version **2.8.0** (published 2026-09-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @roadiehq/backstage-plugin-datadog
pnpm add @roadiehq/backstage-plugin-datadog
yarn add @roadiehq/backstage-plugin-datadog
bun add @roadiehq/backstage-plugin-datadog
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.8.0 |
| Published | 2026-09-29 |
| First published | 2021-02-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 67.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | roadiehq-david, brianfletcher, xantier, roadie-bot |
| Keywords | backstage, plugin, datadog |

## Links

- npm: https://www.npmjs.com/package/@roadiehq/backstage-plugin-datadog
- Repository: github:RoadieHQ/roadie-backstage-plugins
- Issues: https://github.com/RoadieHQ/roadie-backstage-plugins/issues
- npm.io page: https://npm.io/package/@roadiehq/backstage-plugin-datadog

## Dependencies (11)

- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.1.4
- [re-resizable](https://npm.io/package/re-resizable.md) ^6.9.0
- [@material-ui/lab](https://npm.io/package/@material-ui/lab.md) 4.0.0-alpha.57
- [@material-ui/core](https://npm.io/package/@material-ui/core.md) ^4.12.2
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) ^4.9.1
- [@backstage/catalog-model](https://npm.io/package/@backstage/catalog-model.md) ^1.10.1
- [@backstage/core-compat-api](https://npm.io/package/@backstage/core-compat-api.md) ^0.5.15
- [@backstage/core-components](https://npm.io/package/@backstage/core-components.md) ^0.18.14
- [@backstage/core-plugin-api](https://npm.io/package/@backstage/core-plugin-api.md) ^1.12.10
- [@backstage/frontend-plugin-api](https://npm.io/package/@backstage/frontend-plugin-api.md) ^0.18.1
- [@backstage/plugin-catalog-react](https://npm.io/package/@backstage/plugin-catalog-react.md) ^3.2.3

## Recent versions

- 2.8.0 (latest) — 2026-09-29
- 2.7.2 — 2026-04-01
- 2.7.1 — 2026-03-27
- 2.6.0 — 2025-10-31
- 2.5.0 — 2025-07-23
- 2.4.3 — 2025-03-07
- 2.4.2 — 2024-12-23
- 2.4.1 — 2024-11-29
- 2.4.0 — 2024-10-04
- 2.3.4 — 2024-10-03
- 2.3.3 — 2024-09-26
- 2.3.2 — 2024-09-18
- 2.3.1 — 2024-08-28
- 2.3.0 — 2024-08-07
- 2.2.8 — 2024-05-08
- … 69 more at https://npm.io/package/@roadiehq/backstage-plugin-datadog/versions

## README

# Datadog Plugin for Backstage

Embed Datadog graphs and dashboards into Backstage.

Datadog is a monitoring service for cloud-scale applications, providing monitoring of servers, databases, tools, and services through a SaaS-based data analytics platform.

This readme will show you how to

- Setup and integrate the plugin into Backstage.
- Obtain the dashboard URL and graph tokens from Datadog that you will need for your metadata.
- Adding the annotations and the values from Datadog to your component's metadata file.
  <br/>
  <br/>

![dashboard](./docs/datadog-widget.png?raw=true)

## Setup and integrate the plugin into Backstage.

1. In the [packages/app](https://github.com/backstage/backstage/blob/master/packages/app/) directory of your backstage instance, add the plugin as a package.json dependency:

```shell
$ yarn add @roadiehq/backstage-plugin-datadog
```

2. import the plugin to the [entityPage.tsx](https://github.com/backstage/backstage/blob/master/packages/app/src/components/catalog/EntityPage.tsx) source file:

```tsx
import {
  EntityDatadogContent,
  EntityDatadogGraphCard,
  isDatadogGraphAvailable,
} from '@roadiehq/backstage-plugin-datadog';
```

4. Add a Datadog card to the overview tab to the [entityPage.tsx](https://github.com/backstage/backstage/blob/master/packages/app/src/components/catalog/EntityPage.tsx) source file:

```tsx
const overviewContent = (
  <Grid container spacing={3} alignItems="stretch">
    ...
    <EntitySwitch>
      <EntitySwitch.Case if={isDatadogGraphAvailable}>
        <Grid item>
          <EntityDatadogGraphCard />
        </Grid>
      </EntitySwitch.Case>
    </EntitySwitch>
    ...
  </Grid>
);
```

5. Add a Datadog tab to the [entityPage.tsx](https://github.com/backstage/backstage/blob/master/packages/app/src/components/catalog/EntityPage.tsx) source file:

```tsx
const serviceEntityPage = (
  <EntityPageLayout>
    ...
    <EntityLayout.Route path="/datadog" title="Datadog">
      <EntityDatadogContent />
    </EntityLayout.Route>
    ...
  </EntityPageLayout>
);
```

### Integrating with `EntityPage` (New Frontend System)

Follow this section if you are using Backstage's [new frontend system](https://backstage.io/docs/frontend-system/).

1. Import `datadogPlugin` in your `App.tsx` and add it to your app's `features` array:

```typescript
import datadogPlugin from '@roadiehq/backstage-plugin-datadog/alpha';
// ...
export const app = createApp({
  features: [
    // ...
    datadogPlugin,
    // ...
  ],
});
```

## Specify datadog domain

Datadog embedded graph is using `datadoghq.eu`as default top-level domain, when other is not specified. If you are using other domain, you need to specify it with corresponding annotations `datadoghq.com/site`.

### Adding the annotations and the values from Datadog to your component's metadata file.

```yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: sample-service
  description: |
    A sample service
  annotations:
    datadoghq.com/site: <<DATADOGDOMAIN>>
```

## Embed a datadog dashboard in Backstage

### Obtain the dashboard URL from Datadog that you will need for your metadata.

- Login to your Datadog account.

### Get the dashboard URL.

- Navigate to the dashboards list by hovering over dashboards on the page's left-hand side and selecting the dashboard list.

- Select a dashboard from this list.

- Within the dashboard you have chosen, click the settings cog on the screen's right-hand side, circled in red.

![dashboard](./docs/dd-dashboard.png?raw=true)

- Copy the URL from the Sharing textbox.

- This URL is the value you need for the `datadoghq.com/dashboard-url` annotation.

![dashboard share](./docs/dd-dashboard-share.png?raw=true)

- **Note**: You can also add multiple dashboards by creating a list of URLs in the annotation file (Each URL must be separated by a comma - `,` )

### Adding the annotations and the values from Datadog to your component's metadata file

#### Embedding a single dashboard

```yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: sample-service
  description: |
    A sample service
  annotations:
    datadoghq.com/dashboard-url: datadoghq.com
```

#### Embedding multiple dashboards

```yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: sample-service
  description: |
    A sample service
  annotations:
    datadoghq.com/dashboard-url: datadoghq.com,datadoghq.com/dashboard2
```

## Embed a datadog graph in Backstage

- Login to your Datadog account.

### Get the graph token.

- Click on the graph pencil, circled in red, from your dashboard.

![dashboard](./docs/dd-dashboard-2.png?raw=true)

- Click on the Share tab, choose a timeframe, graph size and legend. Click generate the embedded code.

- Copy the token value that is highlighted in the red square.

- this token is the value you need for the `datadoghq.com/graph-token` annotation

![dashboard](./docs/dd-graph-share.png?raw=true)

### Customize graph size.

- In order to customize size of the graph you may specify `datadoghq.com/graph-size` annotations and specify one of the following options:

- 'small'
- 'medium'
- 'large'
- 'x-large';

If not specified, your graph will be 'medium' size per default.

### Adding the annotations and the values from Datadog to your component's metadata file.

```yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: sample-service
  description: |
    A sample service
  annotations:
    datadoghq.com/graph-token: <<TOKEN>
```

## What it looks like

### For the dashboard

Navigate to the Datadog tab, and you will see your dashboard.
![dashboard share](./docs/dd-backstage-tab.png?raw=true)

### For the graph

Navigate to the overview tab for your component. And you will see the graph.
![dashboard share](./docs/dd-graph-overview.png?raw=true)

## Security

A word of note regarding the security of the datadog dashboards and graphs.

The instructions provided for sharing dashboards and graphs generate a URL.

This URL is public to anyone who bears it.

If obtained by another actor, it is usable by them.

## Contributing

Everyone is welcome to contribute to this repository. Feel free to raise [issues](https://github.com/RoadieHQ/backstage-plugin-datadog/issues) or to submit [Pull Requests](https://github.com/RoadieHQ/backstage-plugin-datadog/pulls).

[Join our Discord server!](https://discord.gg/cjv6H6m8VN)

## Links

- [Backstage](https://backstage.io)
- Get hosted, managed Backstage for your company: https://roadie.io

---

Roadie gives you a hassle-free, fully customisable SaaS Backstage. Find out more here: [https://roadie.io](https://roadie.io).

---
_Source: https://npm.io/package/@roadiehq/backstage-plugin-datadog · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
