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
minDynatraceVersion- Minimum Dynatrace version to enforce a minimum version of the extension schema
In this step you will
Create YAML file
Use the following template.
1name: custom:demo.host-observability2version: # add version3minDynatraceVersion: "1.227"4author:5 name: # add your name
extension.yaml and developer key and certificates using the following structure:
1my-sample-extension/2 └── src/3 ├── extension.yaml4 dashboards/5 └── dashboard.json6 alerts/7 └── alert.json
Build and sign your extension package
extensions parent directory, run the following command:
1dt extension assemble2dt extension sign --key ./developer.pem
These commands build your extension package containing only the
extension.zip archive and the
extension.zip.sig signature file.
1bundle.zip2| extension.zip3| extension.zip.sig
Upload your extension to Dynatrace Hub
To upload and activate your extension, run the following command:
1dt extension upload bundle.zip
Example successful output:
1C:\extension>dt extension upload bundle.zip2Tenant url: your-tenant-url3Api token: your-api-token4Extension upload successful!
For more information, see Manage WMI extensions.
Your extension shows up in Dynatrace as Active.
Next step: WMI data source