Export Telemetry Data to Privacera Cloud (D2P Mode)¶
Introduction¶
This guide describes how to export telemetry data metrics, logs, and traces to Privacera Cloud in D2P mode. By configuring the export settings, you can forward monitoring data to Privacera Cloud for centralized observability and analysis.
Prerequisites¶
| Prerequisite | Description |
|---|---|
| D2P Mode Deployment | This configuration applies to D2P mode deployments. |
| Privacera Cloud Access | Ensure you have access to Privacera Cloud and configured the necessary variables in the vars.privacera-cloud.yml file |
| Required Variables | Make sure you have configured PRIVACERA_CLOUD_BASE_URL and PRIVACERA_CLOUD_API_KEY in the vars.privacera-cloud.yml file |
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.privacera-cloud.yml file from the sample-vars folder to the custom-vars folder:
Note
If this file already exists in custom-vars folder, you can skip this step.
| Bash | |
|---|---|
Step 4: Edit Configuration File¶
Open the vars.privacera-cloud.yml file for editing:
| Bash | |
|---|---|
Required Configuration Variables
Before enabling telemetry export, ensure that the following variables are configured in the vars.privacera-cloud.yml file:
PRIVACERA_CLOUD_BASE_URL- The base URL for Privacera CloudPRIVACERA_CLOUD_API_KEY- The API key for authenticating with Privacera Cloud
These variables are required for the export functionality to work properly.
Step 5: Enable Telemetry Export to Privacera Cloud¶
Uncomment the following variables in the file, based on the data you want to export:
Export Metrics to Privacera Cloud¶
By default, metrics are exported to Privacera Cloud. To disable metrics export, uncomment the following variable:
| YAML | |
|---|---|
Export Logs to Privacera Cloud¶
Uncomment this variable if you want to export logs to Privacera Cloud:
| YAML | |
|---|---|
Export Traces to Privacera Cloud¶
Uncomment this variable if you want to export traces to Privacera Cloud:
| YAML | |
|---|---|
Tip
You can enable one or more of these export options based on your requirements. All three can be enabled simultaneously, if needed.
Step 6: Save and Exit¶
Save the file and exit the editor:
- Press
Escto ensure you are in command mode. - Type
:wqand pressEnterto save and exit.
Step 7: 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¶
After redeploying, you can verify that telemetry data is being exported to Privacera Cloud by:
- Checking the OTEL Collector logs for successful export messages.
- Reviewing the status of the monitoring stack:
| Bash | |
|---|---|
Summary¶
By enabling the export variables in vars.privacera-cloud.yml, you can forward your telemetry data (metrics, logs, and traces) to Privacera Cloud for centralized monitoring and analysis in D2P mode deployments.