Customizing Observability Stack¶
We provide an option to customize various features in Privacera monitoring stack like:
- Customizing Prometheus (Retention period, PVC size, Taints and Toleration, Node Selectors and Resource Quota)
- Customizing Grafana (PVC size, Admin login password, Node Selectors and Resource Quota).
- Configuring S3 bucket for Loki, Tempo and Pyroscope for data retention (Only applicable for AWS).
- Creating a custom values file to override the default one for all monitoring component.
To customize the monitoring stack copy vars.monitoing.yml
file to custom-vars
directory.
- SSH into the instance where Privacera Manager is installed.
- Navigate to the
config
directory using the following command:Bash -
Copy
vars.monioring.yml
file fromsample-vars
folder tocustom-vars
folder.If this file already exists in the
custom-vars
folder, you can skip this step.Bash -
Open
vars.monitoring.yml
file.Bash
Customizing Prometheus Configurations¶
- In Prometheus, the default retention period is
15 days
. To update the retention period, uncomment thePROMETHEUS_DATA_RETENTION_PERIOD
variable in thevars.monitoring.yml
file , set it to your desired retention period, and save the changes.Bash - The default PVC size in Prometheus is
10Gi
in Prometheus.To update the PVC size, uncomment thePROMETHEUS_K8S_PVC_SIZE
variable in thevars.monitoring.yml
file and and set the desired PVC size.Bash - If you want to run Prometheus on a specific node, and the desired node is already labeled with the required key and value, uncomment the
PROMETHEUS_DEPLOYMENT_NODE_SELECTORS
variable in thevars.monitoring.yml
file and update theKEY
andVALUE
with the desired key and value. - To update the resource quota of Prometheus, uncomment
PROMETHEUS_RESOURCE_MEMORY_LIMIT
andPROMETHEUS_RESOURCE_CPU_LIMIT
variables invars.monitoring.yml
file and provide the desired values. Default memory limit is10Gi
and CPU is3
core. - If you want to add taints and tolerations to the Prometheus server, uncomment the variables below and provide the desired values in place of
<PLEASE_CHANGE>
.
Customizing Grafana Configurations¶
- The default PVC size in Grafana is
1Gi
. To update the PVC size, uncomment theGRAFANA_K8S_PVC_SIZE
variable in thevars.monitoring.yml
file and set the desired PVC size.Bash - If you want to run Grafana on a specific node, and the desired node is already labeled with the required key and value, uncomment the
GRAFANA_DEPLOYMENT_NODE_SELECTORS
variable in thevars.monitoring.yml
file and update theKEY
andVALUE
with the desired key and value. - To update the default admin password for Grafana, uncomment the
GRAFANA_LOGIN_USER_PASSWORD
variable in thevars.monitoring.yml
file and set it to your desired password.Bash
Configuring S3 Bucket¶
If you are on AWS, you must provide the S3 bucket name for data retention of Loki, Pyroscope, and Tempo. To do so, follow the steps below.
- In
vars.monitoring.yml
file, uncommentMONITORING_S3_BUCKET_NAME
and add the S3 Bucket name which you want to use and save it.Bash
Creating custom values file for Monitoring components¶
If you want to create a custom values file to override the default one for the monitoring components used in Privacera, follow the steps below.
-
Go to
custom-vars
folder.Bash -
Create the required custom values files for the monitoring components. Choose the file name from the table below. For example, if you want to create the custom values file for Grafana, the file name will be
grafana-custom-values.yml
Note
You can refer public HELM chart to take the reference for creating custom values file.
MonitoringComponent Custom values file name Helm Chart Version Grafana grafana-custom-values.yml
8.5.1
Grafana Oncall grafana-oncall-custom-values.yml
1.8.13
Prometheus prometheus-custom-values.yml
25.8.2
BlackBox Exporter blackbox-exporter-custom-values.yml
8.9.0
Loki loki_custom_values.yml
0.79.3
Tempo tempo_distributed_custom_values.yml
1.18.1
Pyroscope pyroscope_custom_values.yml
1.7.1
Otel Receiver otel_collector_custom_values.yml
0.80.1
Otel Scraper otel_scraper_custom_values.yml
0.80.1
Otel Agent otel_agent_custom_values.yml
0.80.1
-
Add the necessary values to the custom values file and save it.
- Redeploy the Privacera Monitoring components.
Restart Services¶
After making the configuration changes, you need to restart the services to apply them. To restart the services, follow the steps below.