Install Splunk OTel Collector Using Helm Chart

  1. Add the chart repository to helm. If Cluster Agent is already installed, go to step 4.
    helm repo add appdynamics-cloud-helmcharts https://appdynamics.jfrog.io/artifactory/appdynamics-cloud-helmcharts/
  2. Create appdynamics namespace.
    kubectl create namespace appdynamics
  3. Create a Helm values file, for example values-ca1.yaml. Update the required properties such as controllerInfo. For details, see Cluster Agent YAML File Configuration Reference.
  4. Add installSplunkOtelCollector: true at the global level in the values-ca1.yaml. When you set this parameter as true and install Cluster Agent, then the infrastructure monitoring is performed using both Cluster Agent and Splunk OTel collector. If this parameter is false, only Cluster Agent is installed and if the Splunk OTel Collector is in the same cluster, then the infrastructure monitoring is performed using both Cluster Agent and Splunk OTel collector.
  5. Add the following configuration at the global level (same level as installClusterAgent) in the values-ca1.yaml file:
    Note:

    If you do not require Cluster Agent to monitor the infrastructure along with the OTel collector, then set the value of disableClusterAgentMonitoring to true in the values-ca1.yaml file. This installs only the OTel collector and if you have configured Cluster Agent to auto-instrument the supported agents, those will also get instrumented.

    The value is set to false by default.

    splunk-otel-collector:
      clusterName: <name of the cluster>
      environment: <environment name>
      splunkObservability:
        accessToken: <specify the access token>
        realm: <specify the region>
        profilingEnabled: true
  6. Run the following command to install Splunk OTel Collector using helm:
    helm install -f ./values-ca1.yaml <cluster-agent-helm-release> appdynamics-cloud-helmcharts/cluster-agent --namespace=appdynamics

    For information about installing Cluster Agent with Helm, see Install Cluster Agent Using Helm Chart.

This is an example file. For details related to Splunk Observability access token, see Create and manage organization access tokens using Splunk Observability Cloud.

installClusterAgent: true
installSplunkOtelCollector: true

# To install Cluster Agent 
installClusterAgent: true


# controller info
controllerInfo:
  url: https://<controller-url>:443
  account: <appdynamics-controller-account>                   
  username: <appdynamics-controller-username>                          
  password: <appdynamics-controller-password>                                 
  accessKey: <appdynamics-controller-access-key>  

# Cluster agent config
clusterAgent:
  nsToMonitorRegex: dev-.*
  disableClusterAgentMonitoring: false

clusterName : abc-test
splunk-otel-collector:
  clusterName: abc-final-3
  environment: test
  splunkObservability:
    accessToken: <splunk-observability-access-token>    #The Splunk access token
    realm: us1
    profilingEnabled: true