dynatrace-oss / dt-cli

Command line tool for Dynatrace
https://pypi.org/project/dt-cli/
Apache License 2.0
17 stars 12 forks source link

Provide a way to create a new extension using a template #12

Closed wbachnik closed 8 months ago

wbachnik commented 3 years ago

In order to make extension creation simple for newcomers we should provide a way to initialize extension project with a complete and already working extension template. For example: dt extension init snmp would create all the files and directories required for a working SNMP-based extension, which in the most basic use case requires user to only add metrics specific to her device (and maybe replace/remove metrics added with the template). Of course such command should be available for all supported data sources.

My idea is to create a separate repository within the dynatrace-oss organization that would host extension templates (in directories named after data source labels). Those could be integrated with dt-cli during build time or (preferably, in my opinion) downloaded on demand when dt extension <data source> command is invoked.

The dt extension init <data source> command should take additional parameters that would allow filling in extension.yaml with required metadata, like author or version number.

Further enhancement: Include project files for VSCode or other editors/IDEs when generating the extension structure.

vduseev commented 8 months ago

Closing because this functionality is now a part of the dt-sdk