RousselTMLEARNING

Observability

AppEngine and custom Dynatrace apps

Build apps on the Dynatrace platform with AppEngine: Dynatrace App Toolkit, React interface and the Strato design system, app functions, Grail queries, permissions, deployment and use cases.

1. Why an app #

When dashboards are no longer enough.

Use cases #

Architecture of an AppEngine app
  • A tailor-made business view (order journey, status of a fleet of stores) combining Dynatrace data and internal data.
  • An operations tool (managing maintenance windows, guided actions) for support teams.
  • An integration with a third-party system via app functions.

2. Developing #

The Dynatrace App Toolkit.

Commands #

npx dt-app@latest create --environment-url https://<env>.apps.dynatrace.com
cd mon-app
npm run start        # développement local relié à l'environnement
npm run deploy       # publication dans l'environnement
// Requête Grail depuis l'interface
import { useDql } from '@dynatrace-sdk/react-hooks';

export const ErrorsByService = () => {
  const { data, isLoading } = useDql({
    query: 'fetch logs | filter loglevel == "ERROR" | summarize errors = count(), by: { service.name } | sort errors desc | limit 10',
  });
  return isLoading ? 'Chargement…' : <pre>{JSON.stringify(data?.records, null, 2)}</pre>;
};

The required permissions (reading logs, documents...) are declared in app.config.json; the user must also have these rights for the app to read the data.

Good to know: Dynatrace evolves very quickly (new platform, Grail, apps): check screen names and API versions in your environment's documentation.

Related articles

Accessing the Dynatrace playground and getting started

The Dynatrace playground is a demo environment full of real data: how to access it, what it allows and does n…

Grail buckets in Dynatrace: creation, routing, retention, rights and costs

Complete guide to Grail buckets: purpose, default buckets, creation in Storage management, with the API or Te…

The Dynatrace QuickStart app: getting your first data in minutes

Discover the QuickStart app: add data with Auto Discovery or a dedicated tile, read Findings, explore with da…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!