Install Splunk OTel Collector Using kubectl CLI
- Install the Cluster Agent Operator using the cluster-agent-operator.yaml file.
kubectl create -f cluster-agent-operator.yaml -n appdynamics
If Cluster Agent is already installed, you can ignore this step.
- (Optional) If you do not require Cluster Agent to monitor the infrastructure along with the OTel collector, then set the value of
disableClusterAgentMonitoring
totrue
in thecluster-agent.yaml
file. The value is set tofalse
by default.This configuration allows infrastructure monitoring only through OTel collector. Also, if you have configured Cluster Agent to auto-instrument the supported agents, those will also get instrumented.
This is an example yaml file:
clusterAgent: appName: splunk-test-7 logLevel: debug nsToMonitorRegex: "demo|fgh" enableAdditionalMetrics: true clusterMetricsSyncInterval: 60 metadataSyncInterval: 60 eventUploadInterval: 10 httpClientTimeout: 30 disableClusterAgentMonitoring: true
Note: ThedisableClusterAgentMonitoring
value takes precedence over sim.cluster.monitoring.enabled. Therefore, if you set thedisableClusterAgentMonitoring
value totrue
then Cluster Agent stops the infrastructure monitoring even whensim.cluster.monitoring.enabled
is set to the default value,true
. - Install Cluster Agent.
kubectl create -f cluster-agent-cli.yaml -n appdynamics
- Clone the Splunk OTel Collector repository from Github repository to the same location where you have installed Cluster Agent.
- Run the following command to create the required resources from the rendered_manifests directory:
kubectl create -f ./rendered_manifests --recursive
- In the rendered_manifests directory, update the secret-splunk.yaml file with the base64 encoded value of splunk_observability_access_token.
For details related to Splunk Observability access token, see Create and manage organization access tokens using Splunk Observability Cloud.
- In the rendered_manifests directory, update the configmap-cluster-receiver.yaml file with the following details:
Parameter Description k8s.cluster.name The name of the cluster. api_url The URL of the OTel Collector API endpoint. ingest_url The URL of the OTel Collector ingestion endpoint. - In the rendered_manifests directory, update the configmap-agent.yaml file with the following API endpoint details:
Parameter Description metrics_endpoint The URL of the OTel Collector metrics endpoint. traces_endpoint The URL of the OTel Collector traces endpoint. logs_endpoint The URL of the OTel Collector logs endpoint. api_url The URL of the OTel Collector API endpoint. ingest_url The URL of the OTel Collector ingestion endpoint.