No project description provided
Project description
Dynatrace DB Queries Extension Bulk Migrator
Tool to help with creating Extensions 2.0 declarative SQL extensions off of Extensions 1.0 Custom DB Queries extension configurations.
API Authentication
For commands that interact with the Dynatrace API you need to provide an API URL and Access token. These can be provided on the command line but it is recommended to use environment variables:
- DT_URL (e.g. https://xxx.live.dynatrace.com)
- DT_TOKEN
- permissions:
- ReadConfig
- WriteConfig
- extensions.read
- extensions.write
- metrics.read
- permissions:
Commands
Use --help with any command to view unique options.
Usage: dbqm pull [OPTIONS]
Pull EF1 db queries configurations into a spreadsheet.
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * --dt-url TEXT [env var: DT_URL] [default: None] [required] │
│ * --dt-token TEXT [env var: DT_TOKEN] [default: None] [required] │
│ --output-file TEXT [default: custom.remote.python.dbquery-export.xlsx] │
│ --help Show this message and exit.
dbqm pull
Used to pull all EF1 Custom DB Queries configurations and export them to an Excel sheet for manual review and as an input to later steps.
dbqm build
Used to build extensions from a previously exported configuration excel workbook.
Certificate and key
Before building you need to create a developer key and certificate. These will be used to sign the extension packages. Refer to the steps here for creating the certificate and key file(s). The developer.pem file will be used in the build command.
Required options
--cert-file-pathpath to developer.pem--private-key-pathpath to developer.pem--input-filepath to the previously exported configuration exce;--merge-endpointstells the tool to merge endpoints based on a matching host or jdbc string (to avoid hitting limits if it were one extension per EF1 DB queries endpoint)--directorypath to where the migrated extensions will be stored locally--uploadupload and activate extensions after build--create-configcreate an initial monitoring configuration based on the db queries configuration (in a disabled state)--pre-cronset this if you are waiting to update AG to 1.301, by default it will set the cron schedule in the new extension but this is only available in AG 1.301+--scopesets the AG group any created configs will be assigned. If not prefixed with 'ag_group-' this will be added automatically (default: 'ag_group-default)
Example:
dbqm build --cert-file-path=developer.pem --private-key-path=developer.pem --input-file=custom.remote.python.dbquery-export.xlsx --merge-endpoints --directory=C:\workspaces\migrated_extensions
After running in the directory (default: migrated_extensions) you will see a directory per new extension which will contain a src directory and a signed zip of the new extension.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file db_queries_bulk_migrator-0.2.3.tar.gz.
File metadata
- Download URL: db_queries_bulk_migrator-0.2.3.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
651cddf37b15e0346f2da20cb64d40947b3a07d955c900ca429dec0b285f3b43
|
|
| MD5 |
2e12e87034d74ef8168b046fecdc58f8
|
|
| BLAKE2b-256 |
2215ea73a13327de481f6117a1b531bafa0e18d16ef2402fc7ff20e385f1e2e1
|
File details
Details for the file db_queries_bulk_migrator-0.2.3-py3-none-any.whl.
File metadata
- Download URL: db_queries_bulk_migrator-0.2.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8292a0be6e6e449a6ea290ff795bd475ab1e0e6daa437ee0b5a013336fb6b603
|
|
| MD5 |
1826cd6869bf8d6e49a6a2286000f40b
|
|
| BLAKE2b-256 |
fbd38bc0c59db8acb310208c370e3674b17b4ebf6784c0e262a71f42b65ebf0b
|