Skip to content

Commit

Permalink
Set TBS storage limit to 10GB
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Dec 17, 2024
1 parent 88c7e0e commit 1d6a2a3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ echo $${POLICY} | jq '.item' | \
jq 'del(.created_at)' | jq 'del(.created_by)' | jq 'del(.updated_at)' | jq 'del(.updated_by)' |\
jq 'select(.inputs[].policy_template == "apmserver").inputs[].vars.expvar_enabled = {type: "bool", value: ${enable_expvar}}' |\
jq 'select(.inputs[].policy_template == "apmserver").inputs[].vars.pprof_enabled = {type: "bool", value: ${enable_pprof}}' |\
jq 'select(.inputs[].policy_template == "apmserver").inputs[].vars.tail_sampling_storage_limit = {"value":"10GB","type":"text"}' |\ # set TBS storage limit to 10GB by default
jq 'select(.inputs[].policy_template == "apmserver").inputs[].vars.tail_sampling_enabled = {type: "bool", value: ${enable_tbs}}' > policy.json

# Update the policy
Expand Down

0 comments on commit 1d6a2a3

Please sign in to comment.