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

**URL:** <https://community.dynatrace.com/t/how-to-convert-and-deploy-a-classic-oneagent-plugin-1-0-to-extension-2-0-using-vs-code/52041>\
**Category:** Extensions\
**Tags:** linux, python, extensions\
**Created:** [June 11, 2025, 5:33pm UTC](https://community.dynatrace.com/t/how-to-convert-and-deploy-a-classic-oneagent-plugin-1-0-to-extension-2-0-using-vs-code/52041 "2025-06-11T17:33:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Eyad](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@Eyad](https://community.dynatrace.com/u/Eyad)\
**Post date:** [June 11, 2025, 5:33pm UTC](https://community.dynatrace.com/t/how-to-convert-and-deploy-a-classic-oneagent-plugin-1-0-to-extension-2-0-using-vs-code/52041/1 "2025-06-11T17:33:16Z")

</div>

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.

---

_[View the full topic](https://community.dynatrace.com/t/how-to-convert-and-deploy-a-classic-oneagent-plugin-1-0-to-extension-2-0-using-vs-code/52041)._
