Homeโ€บโš™๏ธ Track 4: Automate & Governโ€บModule 162 min read ยท 17/21

Extensions

Tutorial

Extensions

Extensions expand Dynatrace monitoring to technologies not natively supported โ€” network devices, databases, cloud services, and custom APIs.

Extension Types

Data Source    How It Works                              Example
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
SNMP          Polls network devices via SNMP protocol    Switches, routers, firewalls
Python        Custom code calling any API                REST APIs, Redfish, WSMAN
SQL           Queries databases directly                 PostgreSQL, MSSQL, Oracle
JMX           Java Management Extensions                 Java application servers
Prometheus    Scrapes Prometheus exporters                Any Prometheus endpoint
WMI           Windows Management Instrumentation         Windows servers

Hub Extensions

200+ pre-built extensions available in the Dynatrace Hub:

# Browse extensions: Ctrl+K โ†’ "Hub" โ†’ Extensions
# Install: click Install on any extension
# Configure: Settings โ†’ Extensions โ†’ select extension โ†’ add endpoint

Extension Architecture

extension.yaml          Defines metrics, topology, screens, alerts
  โ†“
Extension Execution     Runs on ActiveGate or OneAgent
Controller (EEC)
  โ†“
Grail                   Stores collected metrics and entities
  โ†“
Dashboards/Alerts       Bundled dashboards and alert templates

Custom Extensions

Build your own when no Hub extension exists:

# SNMP (declarative YAML โ€” no coding)
pip install dt-extensions-sdk
dt-sdk create --type snmp my-snmp-extension

# Python (coded โ€” for REST APIs, complex logic)
dt-sdk create --type python my-python-extension

# Build and sign
dt-sdk build --sign

# Upload to Dynatrace
dt-sdk upload

๐Ÿ’ก Use SNMP when the device supports standard MIBs (no coding needed). Use Python when you need REST API calls, multi-step authentication, or complex data transformation.

Extension development is covered in depth in the Extensions 2.0 course (16 modules).

๐Ÿ›  Try it: Open Ctrl+K โ†’ "Hub" โ†’ filter by "Extensions" โ†’ browse the 200+ available extensions. Click any SNMP extension to see its metrics, topology entities, and bundled dashboards. Try installing one in a test environment.

Extension Signing

Every extension must be signed before upload. Best practices:

  • Dev: unique leaf certificate per developer (traceability)
  • Prod: unique leaf certificate per extension (authenticity)
  • Root cert must be on every host running the extension
  • Tools: dt-extensions-sdk CLI (recommended) or VSCode Extension