cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Convert and Deploy a Classic OneAgent Plugin (1.0) to Extension 2.0 Using VS Code?

Eyad
Guide

Hi everyone,

I'm working on converting a legacy OneAgent plugin (1.0) that collects normalized CPU load metrics from /proc/loadavg per host, and I want to migrate it to Dynatrace Extension Framework 2.0.

Specifically, I’m looking for guidance on:

  1. Converting the 1.0 plugin to 2.0 format:

    • It currently uses Python and subprocess to get system-level metrics per host.

    • I want to replicate this using a script in Extension 2.0 and ensure it still reports per-host metrics (e.g., using entity: host).

  2. Using Visual Studio Code:

    • Can the entire development and packaging process for Extension 2.0 be done in VS Code?

    • What tools or extensions (if any) are recommended?

  3. Deployment best practices:

    • What's the recommended way to package and deploy a 2.0 extension (especially with scripts)?

    • Any steps to push it to a Dynatrace environment and validate it's working?

Any documentation, examples, or tips from someone who has done a similar migration would be really helpful.

2 REPLIES 2

ct_27
DynaMight Champion
DynaMight Champion

Where is the OneAgent Extension 2.0 documentation equivalent to the OneAgent Extension 1.0 documentation found here, https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extensions/oneagent-extensions/oneagent... 

 

The users question is regarding OneAgent extensions specificially.  I'm not sure the marked Solution answers the posted question.

HigherEd

Featured Posts