Homeโ€บ๐Ÿ“ก SNMP Extensionsโ€บModule 01 min read ยท 1/16

Getting Started

Tutorial2 exercises

What Are Extensions?

Dynatrace Extensions 2.0 let you monitor anything Dynatrace doesn't cover out of the box โ€” network switches, firewalls, UPS devices, custom APIs. You write a YAML file, Dynatrace does the rest.

Two flavors:

  • SNMP โ€” Pure YAML. Polls network devices. This course.
  • Python โ€” Custom code for REST APIs, CLI, etc. Next course.

The Extension File

Every extension starts with extension.yaml. Here's the minimum:

name: custom:com.dynatrace.extension.my-device
version: 0.0.1
minDynatraceVersion: "1.318.0"
author:
  name: Your Name

Rules: name starts with custom:, version is major.minor.patch, minDynatraceVersion is in quotes.

๐Ÿ›  Try it

Fill in the 3 header fields. Remember: name starts with custom:, version is X.Y.Z, and minDynatraceVersion needs quotes.

extension.yamlYAML
Loading...

How It Works

Your extension.yaml โ†’ Upload to Dynatrace โ†’ EEC polls the device โ†’ Metrics flow in โ†’ Entities appear โ†’ Screens show data

The EEC (Extension Execution Controller) runs on an ActiveGate. It reads your YAML, polls SNMP devices on a schedule, and sends metrics to Dynatrace.

What's in the Package?

bundle.zip (what you upload)
โ”œโ”€โ”€ extension.zip
โ”‚   โ”œโ”€โ”€ extension.yaml    โ† your code
โ”‚   โ”œโ”€โ”€ snmp/             โ† MIB files (if needed)
โ”‚   โ””โ”€โ”€ dashboards/       โ† dashboard JSON
โ””โ”€โ”€ extension.zip.sig     โ† digital signature

Adding SNMP Polling

To actually collect data, add an snmp: section. This tells Dynatrace what to poll:

snmp:
  - group: Device Default
    interval:
      minutes: 1
    dimensions:
      - key: device.address
        value: this:device.address

This polls every 1 minute and captures the device IP. No metrics yet โ€” we'll add those next.

๐Ÿ›  Try itExercise 2

Add a sys.name dimension that reads the device hostname. The OID is 1.3.6.1.2.1.1.5.0 โ€” use the oid: prefix.

extension.yamlYAML
Loading...

What's Next

In Module 1, you'll learn about OIDs โ€” the "addresses" that tell SNMP which data to read from a device. Then in Module 2, you'll turn those OIDs into real metrics.