WMI tutorial - extension package
Extensions 2.0 extensions are based on a YAML configuration file. Its minimal contents are:
name
- Must begin withcustom:
for custom extensionsversion
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.
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:
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:
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.
bundle.zip
| extension.zip
| extension.zip.sig
Upload your extension to Dynatrace Hub
To upload and activate your extension, run the following command:
dt extension upload bundle.zip
Example successful output:
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.
Next step: WMI data source