Enabling OTEL Agent¶
Introduction¶
The OTEL Agent (DaemonSet) runs on every node to collect and forward cluster logs to Loki.
By default, the OTEL Agent is enabled when Loki is enabled. If you want to enable the OTEL Agent without enabling Loki, 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: Enable OTEL Agent¶
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 Agent is running:
Look for pods with names containing otel-agent and ensure they show Running status.