Dynatrace
Dynatrace watches applications and services: response times, failure rates, and the problems it opens. AVACOM gets Dynatrace problems as alerts through the Dynatrace provider. Dynatrace’s logs and measurements reach the analysis through MSN.
Problems as alerts
Section titled “Problems as alerts”-
In Dynatrace, create an API token with these scopes:
Scope Why problems.readRequired: read problems settings.read,settings.writeOnly for Install Webhook, which creates the problem notification entities.readThe service topology metrics.read,events.read,logs.readEvidence for the root-cause analysis AVACOM needs to reach the environment’s HTTPS address (for SaaS,
<id>.live.dynatrace.com; for Managed, the cluster or an ActiveGate). -
In AVACOM, open Providers, choose Dynatrace and fill in:
Field Value Dynatrace environment ID or URL SaaS: the environment ID, the first part of <id>.live.dynatrace.com. Managed: the environment URL,https://<cluster or ActiveGate>/e/<environment-id>Dynatrace’s API token The token ( dt0c01.…)Dynatrace’s alerting profile The alerting profile whose problems to send (default Default)Verify TLS certificates On. For a Managed cluster with a certificate from the bank’s CA, add the CA to the AVACOM host’s trust store (or set REQUESTS_CA_BUNDLE) -
Tick Install Webhook to have AVACOM create a problem notification in Dynatrace that posts every problem to it, signed with an AVACOM API key. Or turn on Pulling Enabled to have AVACOM read problems from Dynatrace’s Problems API instead (every page of them).
-
Press Connect.
Set the webhook up by hand
Section titled “Set the webhook up by hand”Without settings.write, AVACOM cannot create the problem notification. The provider’s page then shows the steps
and the payload to paste: in Dynatrace, Settings > Integration > Problem notifications > Add notification >
Custom integration, with AVACOM’s address as the webhook URL, an X-API-KEY header holding the AVACOM API key,
Call webhook if problem is closed turned on, and the alerting profile to send.
Give the alerts a host and a service
Section titled “Give the alerts a host and a service”A Dynatrace problem names its impacted entities in its own fields, not in host or service. For the analysis to
find evidence, add an Extraction or Mapping rule (under Noise reduction) that sets service, and host
where there is one, from the problem’s impacted entity names. See
What the RCA needs from an alert.
Logs and measurements, into MSN
Section titled “Logs and measurements, into MSN”Send Dynatrace’s measurements (response time, failure rate) and events (problem opened, updated) to their own
stream in MSN, for example dynatrace, through MSN’s ingest API. Use the performance-log shape (metric, value,
unit, threshold in attributes), as on the SolarWinds page. They then
appear on the Root cause tab as Dynatrace via MSN, and correlation can place them in a cause chain.
Evidence and topology, directly
Section titled “Evidence and topology, directly”The provider also answers the analysis’ evidence questions and fills the Service Topology itself. Without the scopes for these, it reports them as missing and goes on with problems only.
| What | From | For |
|---|---|---|
| Metrics | Metrics API v2 | Hosts: CPU, memory, disk used (90 %). Services: response time, failure rate (5 %), requests |
| Events | Events API v2 | Events on the incident’s hosts and services in the window |
| Logs | Log Monitoring API v2 | Log lines of those hosts (host.name) and services (service.name) |
| Topology | Entities API v2 | Services and the services they call (fromRelationships.calls), every 2 minutes with the problems |
Hosts and services are matched by name (entityName.in(...)). To ask for other metrics, put a JSON list in
Metrics for RCA evidence, for example
[{"metric": "mq.depth", "entity": "host", "selector": "ext:mq.queue.depth", "unit": "", "threshold": 1000}].