Enabling OTEL Collector as a DaemonSet¶
Introduction¶
The OpenTelemetry (OTEL) Collector, deployed as a Kubernetes DaemonSet, runs on every node in the cluster to collect and forward logs to Loki and other observability backends.
By default, the OTEL Collector runs in Deployment mode. To run the OTEL Collector as a DaemonSet, follow the steps below.
Process¶
Step 1: Access Privacera Manager Instance¶
SSH into the instance where Privacera Manager is installed.
Step 2: Navigate to Configuration Directory¶
Navigate to the config directory using the following command:
| Bash | |
|---|---|
Step 3: Copy Configuration File¶
Copy the vars.monitoring.yml file from the sample-vars folder to the custom-vars folder:
Note
If the file already exists in custom-vars, you can skip this step.
| Bash | |
|---|---|
Step 4: Edit Configuration File¶
Open the vars.monitoring.yml file for editing:
| Bash | |
|---|---|
Step 5: Deploy the OTEL Collector as a DaemonSet.¶
Uncomment the following variable in the file and save it:
| YAML | |
|---|---|
Step 6: Redeploy Monitoring Components¶
Once the configuration is complete, redeploy the monitoring components.
a. Go to privacera-manager directory.
| Bash | |
|---|---|
setup to generate the required files. | Bash | |
|---|---|
| Bash | |
|---|---|
install to update the Grafana. | Bash | |
|---|---|
post-install. | Bash | |
|---|---|
Verification¶
To verify that the OTEL Collector is deployed and running as a DaemonSet:
Look for pods with names containing otel-receiver-agent and verify that their status is Running.