• Home
  • Extend Dynatrace
  • Extensions 2.0
  • Data sources
  • WMI data source
  • WMI data source tutorial
  • WMI tutorial - extension package

WMI tutorial - extension package

Extensions 2.0 extensions are based on a YAML configuration file. Its minimal contents are:

  • name - Must begin with custom: for custom extensions
  • version
  • author
  • minDynatraceVersion - Minimum Dynatrace version to enforce a minimum version of the extension schema

In this step you will

Create YAML file

Build your extension package

Upload your extension to Dynatrace Hub

Create YAML file

Use the following template.

yaml
name: custom:demo.host-observability version: # add version minDynatraceVersion: "1.227" author: name: # add your name

Save your extension.yaml and developer key and certificates using the following structure:

plaintext
my-sample-extension/ └── src/ ├── extension.yaml dashboards/ └── dashboard.json alerts/ └── alert.json

Build and sign your extension package

In the extensions parent directory, run the following command:

shell
dt extension assemble dt extension sign --key ./developer.pem

These commands build your extension package containing only the extension.zip archive and the extension.zip.sig signature file.

plaintext
bundle.zip | extension.zip | extension.zip.sig

Upload your extension to Dynatrace Hub

To upload and activate your extension, run the following command:

shell
dt extension upload bundle.zip

Example successful output:

plaintext
C:\extension>dt extension upload bundle.zip Tenant url: your-tenant-url Api token: your-api-token Extension upload successful!

For more information, see Manage WMI extensions.

Results

Your extension shows up in Dynatrace as Active.

result

Next step: WMI data source