Configure the DaemonSet

SnapLogic provides a ZIP file with the pre-configured YAML files required by Kubernetes to deploy the OTEL collector as a DaemonSet.

We provide a ZIP file with the pre-configured YAML files required by Kubernetes to deploy the OTEL collector as a DaemonSet. Just edit one file, configmap.yaml, and add your Datadog API key.

Kubernetes requires a service definition, role, and service account for the otel-collector. These are configured in the service.yaml, roles.yaml, and serviceaccount.yaml manifests. Refer to the Kubernetes documentation on services. Comments in the pre-configured YAML files show the elements required for Datadog to monitor a Groundplex. Use the comments as a guide to configure an OTEL collector for a different observability tool.

To configure and deploy an OTEL collector:

  1. Download and extract otelcol-contrib-snaplogic.zip.
  2. With any editor, open configmap.yaml.
  3. On line 60, replace <DD api key> with your Datadog API key. For example: 60f0**************************1c
  4. Save the pre-configured Kubernetes files in the /etc/kubernetes/manifests/ folder of your K8s installation.
  5. Execute the following commands in the /etc/kubernetes/manifests/ folder:
    kubectl apply -f configmap.yaml
    kubectl apply -f serviceaccount.yaml
    kubectl apply -f roles.yaml
    kubectl apply -f service.yaml
    kubectl apply -f daemonset.yaml

After Kubernetes applies the files, the OTEL collector starts up. Use the kubectl get all command to confirm. The relevant lines are highlighted in the following screenshot:


Kubernetes get all command

Next, Configure the Groundplex nodes.