πŸ’ 
Dynatrace
StackState core integration
This page describes StackState version 4.3.

Overview

The Dynatrace StackPack creates a synchronization between a Dynatrace instance and StackState. When the integration is enabled, Dynatrace Smartscape topology and events for the configured relative_time (default 1 hour) will be available in StackState.
Data flow
  • Agent V2 connects to the configured Dynatrace API to retrieve Smartscape topology and events data.
  • Agent V2 pushes retrieved data to StackState.
  • ​Topology data is translated into components and relations.
  • ​Tags defined in Dynatrace are added to components and relations in StackState.
  • ​Events are available in the StackState Events Perspective and listed in the details pane of the StackState UI.

Setup

Pre-requisites

To set up the Dynatrace integration you will need to have:
  • ​StackState Agent V2 installed on a machine that can connect to both Dynatrace and StackState.
  • A running Dynatrace instance.
  • A Dynatrace API Token with access to read the Smartscape Topology and Events, see REST API endpoints.

Install

Install the Dynatrace StackPack from the StackState UI StackPacks > Integrations screen. You will need to provide the following parameters:
  • Dynatrace URL - the Dynatrace URL from which topology will be collected.
  • Dynatrace Instance Name - the user-defined name of the Dynatrace account shown in configurations such as views.

Configure

To enable the Dynatrace check and begin collecting data from Dynatrace, add the following configuration to StackState Agent V2:
  1. 1.
    Edit the Agent integration configuration file /etc/stackstate-agent/conf.d/dynatrace.d/conf.yaml to include details of your Dynatrace instance:
    • url - the URL of the Dynatrace instance.
    • token - an API token with access to the required Dynatrace API endpoints.
      1
      # Section used for global dynatrace check config
      2
      init_config:
      3
      ​
      4
      instances:
      5
      # mandatory
      6
      - url: <url> # URL of the Dynatrace instance
      7
      token: <token> # API-Token to connect to Dynatrace
      8
      # verify: True # By default its True
      9
      # timeout: 10
      10
      # cert: /path/to/cert.pem
      11
      # keyfile: /path/to/key.pem
      12
      # domain: <domain> # default 'dynatrace'
      13
      # environment: <environment> # default 'production'
      14
      # relative_time : <relative_time> # default 'hour'
      15
      # events_bootstrap_days: 5 # default 5 days
      16
      # events_process_limit: 10000 # default 10k events
      17
      # tags:
      18
      # - foo:bar
      Copied!
  2. 2.
    Optional: Add a domain and environment in the conf.yaml file to specify where imported Dynatrace topology will end up in StackState (default domain=dynatrace and environment=production).
  3. 3.
    ​Restart the StackState Agent(s) to apply the configuration changes.
  4. 4.
    Once the Agent has restarted, wait for data to be collected from Dynatrace and sent to StackState.

Status

To check the status of the Dynatrace integration, run the status subcommand and look for Dynatrace under Running Checks:
1
sudo stackstate-agent status
Copied!

Upgrade

When a new version of the Dynatrace StackPack is available in your instance of StackState, you will be prompted to upgrade in the StackState UI on the page StackPacks > Integrations > Dynatrace. For a quick overview of recent StackPack updates, check the StackPack versions shipped with each StackState release.
For considerations and instructions on upgrading a StackPack, see how to upgrade a StackPack.

Integration details

REST API endpoints

The API Token configured in StackState Agent V2 must have the permission Access problems and event feed, metrics, and topology (API value DataExport), see Dynatrace API token permissions (dynatrace.com) for details. The API endpoints used in the StackState integration are listed below:
  • /api/v1/entity/applications
  • /api/v1/entity/infrastructure/hosts
  • /api/v1/entity/infrastructure/processes
  • /api/v1/entity/infrastructure/process-groups
  • /api/v1/entity/services
  • /api/vi/events
Refer to the Dynatrace documentation for details on how to create an API Token.

Data retrieved

Events

The Dynatrace check retrieves all events and their parameters from Dynatrace for the configured relative_time (default 1 hour). Retrieved events are available in the StackState Events Perspective and listed in the details pane of the StackState UI.

Metrics

The Dynatrace check does not retrieve any metrics data.

Tags

All tags defined in Dynatrace will be retrieved and added to the associated components and relations in StackState. The Dynatrace integration also understands common tags and applies these to topology in StackState.

Topology

The Dynatrace check retrieves the following topology data from Dynatrace:
Data
Description
Components
Smartscape Applications, Hosts, Processes, Process-Groups and Services.
Relations
Relations between the imported components are included in the component data retrieved from Dynatrace.

Traces

The Dynatrace check does not retrieve any traces data.

Dynatrace filters for StackState views

When the Dynatrace integration is enabled, the following additional keys can be used to filter views in the StackState UI:
  • dynatrace-ManagementZones
  • dynatrace-EntityID
  • dynatrace-Tags
  • dynatrace-MonitoringState
For example, to filter a view by Dynatrace Management Zone, add the key dynatrace-managementZones:<value> to the Labels filter box.
Use a Dynatrace topology filter

Open source

The code for the Dynatrace check is open source and available on GitHub at: https://github.com/StackVista/stackstate-agent-integrations/tree/master/dynatrace​

Troubleshooting

Troubleshooting steps for any known issues can be found in the StackState support Knowledge base.

Uninstall

To uninstall the Dynatrace StackPack and disable the Dynatrace check:
  1. 1.
    Go to the StackState UI StackPacks > Integrations > Dynatrace screen and click UNINSTALL.
    • All Dynatrace specific configuration will be removed from StackState.
  2. 2.
    Remove or rename the Agent integration configuration file, for example:
    1
    mv dynatrace.d/conf.yaml dynatrace.d/conf.yaml.bak
    Copied!
  3. 3.
    ​Restart the StackState Agent(s) to apply the configuration changes.

Release notes

Dynatrace StackPack v1.1.1 (2021-04-02)
  • Feature: Gather Events from your Dynatrace instance and provides Health info about Dynatrace components.
  • Feature: Support for Dynatrace tags.
  • Improvement: Enable auto grouping on generated views.
  • Improvement: Common bumped from 2.2.3 to 2.5.1
  • Improvement: StackState min version bumped to 4.3.0
Dynatrace StackPack v1.0.0
  • Feature: Gathers Topology from your Dynatrace instance and allows visualization of your Dynatrace components and the relations between them.

See also

Last modified 2mo ago