Skip to content

Commit

Permalink
- add quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Sep 19, 2024
1 parent 0d2518a commit e495aac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ update_kibana()
prepare_promtail() {
pushd tdrs-backend/plg/promtail
CONFIG=config.yml
yq eval -i ".scrape_configs[0].job_name = system-$backend_app_name" $CONFIG
yq eval -i ".scrape_configs[1].job_name = backend-$backend_app_name" $CONFIG
yq eval -i ".scrape_configs[0].job_name = \"system-$backend_app_name\"" $CONFIG
yq eval -i ".scrape_configs[1].job_name = \"backend-$backend_app_name\"" $CONFIG
popd
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ KIBANA_BASE_URL="${CGAPPNAME_KIBANA}-${env}.apps.internal"
prepare_promtail() {
pushd tdrs-frontend
CONFIG=promtail.config.yml
yq eval -i ".scrape_configs[0].job_name = system-$frontend_app_name" $CONFIG
yq eval -i ".scrape_configs[1].job_name = frontend-$frontend_app_name" $CONFIG
yq eval -i ".scrape_configs[0].job_name = \"system-$backend_app_name\"" $CONFIG
yq eval -i ".scrape_configs[1].job_name = \"backend-$backend_app_name\"" $CONFIG
popd
}

Expand Down

0 comments on commit e495aac

Please sign in to comment.