Step 1. SSH to the OpsMan VM, Run "bosh upload-release https://bosh.io/d/github.com/cloudfoundry/os-conf-release?v=22.1.2"
Step 2. Run "vim ./os-config.yaml"
Step 3. Modify the file. You should update your deployment here: deployment: ["<Your_deployment_name>"], and you can change the value here as needed for example: "MaxRAMPercentage=30.0".
releases:
- name: os-conf
version: 22.1.2
url: https://bosh.io/d/github.com/cloudfoundry/os-conf-release?v=22.1.2
sha1: 386293038ae3d00813eaa475b4acf63f8da226ef
addons:
- name: update-MaxRAMPercentage
include:
deployment: ["<Your_deployment_name>"]
instance_groups: ["pas-exporter-gauge"]
jobs:
- name: pre-start-script
release: os-conf
templates:
pre-start.sh: bin/pre-start
properties:
script: |-
#!/bin/bash
echo 'sed -i 's/MaxRAMPercentage=80.0/MaxRAMPercentage=30.0/' /var/vcap/jobs/pas-exporter/config/bpm.yml' >> /var/vcap/jobs/bpm/bin/pre-start
Step 4. Run "bosh update-runtime-config --name=update-MaxRAMPercentage ./os-config.yaml"
Step 5. Apply Changes from the OpsMan UI for Healthwatch Exporter for Tanzu Application Service tile.
Step 6. Verify from the VM and check your Grafana dashboard metrics. "bosh -d <deployment_name> ssh pas-exporter-gauge" and "ps -ef | grep pas-exporter"