• Home
  • Deploy Dynatrace
  • Set up Dynatrace on container platforms
  • Kubernetes
  • Get started with Kubernetes/OpenShift monitoring
  • Set up OpenShift monitoring via OperatorHub

Set up OpenShift monitoring via OperatorHub

The OperatorHub is the interface that cluster administrators use to discover and install operators and is available via the OpenShift Container Platform web console.

Prerequisites for OpenShift Dedicated

  • A dedicated-admin user for the OpenShift Dedicated cluster
How to add a user to a dedicated-admin role
  1. Sign in to the Red Hat OpenShift Cluster Manager with your Red Hat account.
  2. Select the OpenShift Dedicated cluster and go to Access control > Cluster administrative users > Add user.
  3. Add the userid of the user who will have dedicated-admin access.

Note: The dedicated-admin user must be added before the OneAgent Operator is visible in the OperatorHub UI.

Installation

To install Dynatrace Operator on OpenShift via OperatorHub

  1. On the OpenShift Container Platform dashboard, select Operators > OperatorHub from the side menu.

  2. Select Dynatrace Operator > Install.

  3. Enter the necessary information about the Operator subscription.

  4. In Installation Mode, select All namespaces.

  5. Keep the default values of the other settings and select Subscribe.

  6. Go to Operators > Installed Operators and wait until you see Install Succeeded.

  7. Go to Workloads > Secrets and create a new key named dynakube with two values:

    • apiToken equal to your cluster's API token
    • paasToken equal to your cluster's Platform-as-a-Service token.
  8. Go to Operators > Installed Operators from the side menu and select Dynatrace Operator.

  9. Select Create instance.

  10. Make the following changes:

    • Replace apiURL value according to your deployment:

      Dynatrace SaaS
      yaml
      spec: apiURL: 'https://ENVIRONMENTID.live.dynatrace.com/api'

      Replace ENVIRONMENTID with your environment ID.

      Dynatrace Managed
      yaml
      spec: apiURL: 'https://<YourDynatraceServerURL>/e/<ENVIRONMENTID>/api'

      Replace YourDynatraceServerURL with the address of your Dynatrace Managed Cluster and ENVIRONMENTID with your environment ID.

    • Set classicFullStack.enabled to true.

    • If you're using a custom resource file, set namespace to the namespace where you installed Dynatrace Operator.

  11. Select Create.

Limitations

On OperatorHub, you can only deploy the classicFullStack, hostMonitoring, or applicationMonitoring without the CSI driver configurations; cloudNativeFullStack and applicationMonitoring with the CSI driver aren't currently supported.

Related topics
  • Kubernetes/OpenShift monitoring

    Monitor Kubernetes/OpenShift with Dynatrace.

  • Deploy OneAgent Operator on OpenShift (deprecated)

    Install OneAgent on OpenShift using kubectl or Helm.