Skip to content

Enable Ranger Metrics

Overview

Apache Ranger provides metrics to monitor the performance and health of the Ranger Admin service. These metrics offer valuable insights into the service's usage and performance, helping you proactively identify and troubleshoot issues.

Enable/Disable Metrics

Follow these steps to enable/disable Ranger metrics:

  1. SSH into the instance where Privacera Manager is installed.
  2. Navigate to the privacera-manager directory using the following command:
    Bash
    cd ~/privacera/privacera-manager/
    
  3. Run the following command to copy the sample vars. The -n flag ensures that the file is not overwritten if it already exists:
    Bash
    cp -n config/sample-vars/vars.ranger.admin.yml config/custom-vars/
    
  4. Run the following command to open the .yml file for editing.
    Bash
    vi config/custom-vars/vars.ranger.admin.yml
    
  5. Add or update the following property:
Variable Definition
RANGER_PROMETHEUS_METRICS_ENABLED Enables metrics from ranger. Default is true
RANGER_PROMETHEUS_HTTP_METRICS_ENABLED Enables metrics related to HTTP calls. Default is true

YAML
RANGER_PROMETHEUS_METRICS_ENABLED: "false" #To disable ranger metrics
RANGER_PROMETHEUS_HTTP_METRICS_ENABLED: "false" #To disable ranger http metrics
6. Once the properties are configured, update your Privacera Manager platform instance by following the
Bash
1
2
3
cd ~/privacera/privacera-manager
./privacera-manager.sh setup
./pm_with_helm.sh upgrade 

Comments