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

Help on SQL DB2 extension

venkata_s_matta
Participant

Hello Everyone,

I am new to building the custom extension 2. 0

I created the YAML as per the documentation and I am trying to build the extension, i am getting the below error messages in VSCODE

Property minDynatraceVersion is not allowed.

Property author is not allowed.

Property sqlDb2 is not allowed.

Could you please help me here how to point to the right schemas here?

 

 

6 REPLIES 6

TomásSeroteRoos
Dynatrace Helper
Dynatrace Helper

Sounds like you loaded in a older version of the schema. Can you try running the VSCode Load schemas command and selecting one of the newer ones? Make sure to download it when prompted.

TomsSeroteRoos_0-1722856817416.png

Thank you. I can build and upload. When I configure it, I get the below error please let me know if I miss anything when I upload it

Failed to assign monitoring configuration to ActiveGate. Reason: Cannot extract extension from C:\ProgramData\dynatrace\remotepluginmodule\/agent/runtime\extensions\download\custom_my.sql.pcg: checking signature failed

Did you follow the instructions here to upload your root certificate to the ActiveGate? VSCode takes care of most stuff for you, but uploading the certificate you'll probably have to do manually.

You can check the path of the root certificate generated by the VSCode extension in the extension settings.

venkata_s_matta
Participant

When i did  pip show dt-cli from PowerShell

Output :


Name: dt-cli
Version: 1.6.18
Summary: Dynatrace CLI
Home-page: https://github.com/dynatrace-oss/dt-cli
Author: Vagiz Duseev
Author-email: vagiz.duseev@dynatrace.com
License: Apache-2.0
Location: C:\Users\vsm754\AppData\Roaming\Python\Python312\site-packages
Requires: asn1crypto, click-aliases, cryptography, jsonschema, PyYAML, requests, typer, wheel

 

but for the dt ext genca

Output:
dt : The term 'dt' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ dt ext genca
+ ~~
+ CategoryInfo : ObjectNotFound: (dt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Please help me what i am missing here.

Seems like you are trying to sign the extension again, which you shouldn't need to do since the VSCode extension already does that for you. What you should do is fetch the certificate VSCode generated, which is by default in a path which looks like this:

c:\Users\<username>\AppData\Roaming\Code\User\workspaceStorage\<UUID>\DynatracePlatformExtensions.dynatrace-extensions\certificates\ca.pem

 You can find the exact path in the VSCode extension settings.

TomsSeroteRoos_0-1722922562094.png

Alternatively, run the VSCode "Distribute certificate" command and go fetch it from the AG/OA certificate directory so that you can then upload it to the host/AG you are trying to deploy the extension on, as per the instructions the docs I linked above.

venkata_s_matta
Participant

Thankyou it's work 

Featured Posts