Skip to main content

No project description provided

Project description

Dynatrace Extension Migrator

Helps with moving the configurations of select Extensions 1.0 extensions to their 2.0 equivalents.

Requirements

  • Python 3.10+
  • An API token:
    • Ust the 'Extension Development' token or provide the following scopes:
      • extensions.read
      • extensionConfigurations.read
      • extensionConfigurations.write

Installation

pip install dt-extension-migrator

Usage

Each supported EF1 extension has a subcommand e.g. dt-ext-migrator remote-unix --help

Each will have a similar set of commands for pulling the EF1 configurations and pushing the converted EF2 extensions to the Dynatrace environment.

Environment details

You can specify the Dynatrace environment URL and API token either in the --dt-url and --dt-token options or in DT_URL and DT_TOKEN environment variables (recommended).

Pulling configurations

When pulling EF1 configurations you can specify the output file (optional) and one or more "indexes" by specifying the --index option for each field you want to 'group' configurations on. For example, if you want to group just on the 'group' in the EF1 configuration you can run:

dt-ext-migrator remote-unix pull --index group

If you want to group by the group and the configured username you can run:

dt-ext-migrator remote-unix pull --index group --index username

You will have an Excel spreadsheet generated with a tab for each set of grouped dimensions you will be able to use when pushing the converted configs.

Pushing configurations

Once you have the spreadsheet generated you can use this to convert and push the configurations to their EF2 equivalents.

dt-ext-migrator remote-unix push --input-file .\custom.remote.python.remote_agent-export.xlsx --sheet group1-myuser --version 1.0.0 --ag-group ag_group-default

Tips:

  • The --ag-group option can be specified with or without the leading ag_group- prefix
  • Fields you should review/update manually will be the authentication (top-level monitoring configuration level is recommended) and the top-level 'group' setting if used

A summary will be printed after a successful push. E.g.:

2 endpoints will attempt to be added to the monitoring configuration.
Configs created successfully. Response: 200
Link to monitoring configuration: https://<environment>/ui/hub/ext/listing/registered/<extensionId>/fe14090c-4bfe-30b5-b88b-84a8e6f65607/read

The configuration will be disabled by default so you can review it, add authentication, and making any other needed chagnes before enabling.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dt_extension_migrator-0.5.4.tar.gz (68.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dt_extension_migrator-0.5.4-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file dt_extension_migrator-0.5.4.tar.gz.

File metadata

  • Download URL: dt_extension_migrator-0.5.4.tar.gz
  • Upload date:
  • Size: 68.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Windows/10

File hashes

Hashes for dt_extension_migrator-0.5.4.tar.gz
Algorithm Hash digest
SHA256 4586f09de88d0b02c050fbf86abf412d27750437609b3f6c1794a75f21f65a80
MD5 dd74bf6ba21cc566a22987b9e617caf1
BLAKE2b-256 0a0e919bba4b17bf6ef782bedbe22f3f58229d89527f4e6a7591d9d24d374ba5

See more details on using hashes here.

File details

Details for the file dt_extension_migrator-0.5.4-py3-none-any.whl.

File metadata

File hashes

Hashes for dt_extension_migrator-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 42cf9244a005a1900aa859fcbece2d3a65c30d63521dd1d70aa117b6d6eed2ba
MD5 a6ad956a5c59e051e8ee6fac2628e52d
BLAKE2b-256 d46d05cc63e0be6ffd4e4d3c63b8d391ee7ecf191b2b838ad0dcc4dec84bde36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page