Dynatrace Streaming Output and Integration

George Alpizar
George Alpizar
  • Updated

Overview

The Dynatrace output will stream analytics and insights to your Dynatrace environment.


Review Sample Configuration

The following sample configuration displays an output without the name of the organization-level integration:

    - name: dynatrace
      type: dynatrace
      log_endpoint: "https://{your-environment-id}.live.dynatrace.com/api/v2/logs/ingest"
      metric_endpoint: "https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest"
      token: "<add dynatrace token>"
      custom_tags:
        "region": "us-west-2"
        "File Path": "{{.FileGlobPath}}"
        "K8s PodName": "{{.K8sPodName}}"
        "K8s Namespace": "{{.K8sNamespace}}"
        "K8s ControllerKind": "{{.K8sControllerKind}}"
        "K8s ContainerName": "{{.K8sContainerName}}"
        "K8s ContainerImage": "{{.K8sContainerImage}}"
        "K8s ControllerLogicalName": "{{.K8sControllerLogicalName}}"
        "ECSCluster": "{{.ECSCluster}}"
        "ECSContainerName": "{{.ECSContainerName}}"
        "ECSTaskVersion": "{{.ECSTaskVersion}}"
        "ECSTaskFamily": "{{.ECSTaskFamily}}"
        "DockerContainerName": "{{.DockerContainerName}}"
        "ConfigID": "{{.ConfigID}}"
        "Host": "{{.Host}}"
        "Source": "{{.Source}}"
        "SourceType": "{{.SourceType}}"
        "Tag": "{{.Tag}}"

Review Parameters

Review the following parameters that you can configure in the Edge Delta App.


name

Required

Enter a descriptive name for the output or integration.

For outputs, this name will be used to map this destination to a workflow.

Review the following example:

name: dynatrace

integration_name

Optional

This parameter refers to the organization-level integration created in the Integrations page. 

If you need to add multiple instances of the same integration into the config, then you can add a custom name to each instance via the name parameter. In this situation, the name should be used to refer to the specific instance of the destination in the workflows.

Review the following example:

integration_name: orgs-influxdb

type

Required

Enter dynatrace.

Review the following example:

type: dynatrace

log_endpoint 

Required

Enter the Dynatrace log endpoint. 

Review the following example:

log_endpoint: "https://{your-environment-id}.live.dynatrace.com/api/v2/logs/ingest"

metric_endpoint

Required

Enter the Dynatrace metric endpoint. 

Review the following example:

metric_endpoint: "https://{your-environment-id}.live.dynatrace.com/api/v2/metrics/ingest"

token

Optional

Enter the Dynatrace log token.

You must enter a token to support log streaming. 

Review the following example:

token: "<add dynatrace token>"

custom_tags 

Optional 

This parameter defines key-value pairs that are streamed with every request.

Review the following example:

      custom_tags:
        "region": "us-west-2"
        "File Path": "{{.FileGlobPath}}"
        "K8s PodName": "{{.K8sPodName}}"
        "K8s Namespace": "{{.K8sNamespace}}"
        "K8s ControllerKind": "{{.K8sControllerKind}}"
        "K8s ContainerName": "{{.K8sContainerName}}"
        "K8s ContainerImage": "{{.K8sContainerImage}}"
        "K8s ControllerLogicalName": "{{.K8sControllerLogicalName}}"
        "ECSCluster": "{{.ECSCluster}}"
        "ECSContainerName": "{{.ECSContainerName}}"
        "ECSTaskVersion": "{{.ECSTaskVersion}}"
        "ECSTaskFamily": "{{.ECSTaskFamily}}"
        "DockerContainerName": "{{.DockerContainerName}}"
        "ConfigID": "{{.ConfigID}}"
        "Host": "{{.Host}}"
        "Source": "{{.Source}}"
        "SourceType": "{{.SourceType}}"
        "Tag": "{{.Tag}}"

tls: disable_verify

Optional 

To disable a TLS verification of a certificate, in the YAML file, enter:

  • disable_verify:true.

To enable a TLS verification of the certificate, in the YAML file, you can enter disable_verify:false or you can remove this line entirely. 

Review the following example: 

tls:
  disable_verify: true

tls: ca_file

Optional

Enter the absolute file path to the CA certificate file. 

Review the following example: 

tls:
ca_file: /var/etc/cribl/ca_file

tls: ca_path

Optional 

Enter the absolute path to scan the CA certificate file. 

Review the following example: 

tls:
ca_path: /var/etc/cribl

tls: crt_file

Optional 

Enter the absolute path to the certificate file. 

Review the following example: 

tls:
crt_file: /var/etc/kafka/crt_file

tls: key_file

Optional

Enter the absolute path to the private key file. 

Review the following example: 

tls:
  key_file: /certs/server-key.pem

tls: key_password

Optional

Enter the password for the key file. 

Review the following example: 

tls:
  key_password: p@ssword123

tls: client_auth_type

Optional 

Enter a client authorization type. 

You can enter:

  • noclientcert
  • requestclientcert
  • requireanyclientcert
  • verifyclientcertifgiven
  • requireandverifyclientcert

The default setting is noclientcert.

Review the following example: 

tls:
client_auth_type: noclientcert

tls: min_version

Optional

Enter the minimum version of TLS to accept. 

Review the following example: 

tls:
min_version: TLSv1_1

tls: max_version 

Optional

Enter the maximum version of TLS to accept. 

Review the following example: 

tls:
max_version: TLSv1_3

features

Optional 

This parameter defines which data types to stream to the destination.

To learn more, review the Review Feature Types section in Stream Outputs and Integrations Overview.

Review the following example: 

features: log,edac,metric,alert

buffer_ttl

Optional

Enter a length of time to retry failed streaming data.

After this length of time is reached, the failed streaming data will no longer be tried.

Review the following example: 

buffer_ttl: 2h

buffer_path

Optional

Enter a folder path to temporarily store failed streaming data.

The failed streaming data will be retried until the data reaches its destinations or until the Buffer TTL value is reached.

If you enter a path that does not exist, then the agent will create directories, as needed.

Review the following example: 

buffer_path: /var/log/edgedelta/pushbuffer/

buffer_max_bytesize

Optional 

Enter the maximum size of failed streaming data that you want to retry.

If the failed streaming data is larger than this size, then the failed streaming data will not be retried.

Review the following example: 

buffer_max_bytesize: 100MB

 

Share this document