Skip to content

Commit

Permalink
- update comment in route
Browse files Browse the repository at this point in the history
- remove unneeded prefix
  • Loading branch information
elipe17 committed Sep 23, 2024
1 parent 7ceb3d9 commit cc73759
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/deploy-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ prepare_promtail() {
}

update_plg_networking() {
# Backend needs to send metrics to prometheus
# Prometheus needs to scrape metrics from the backend
cf add-network-policy prometheus "$CGAPPNAME_BACKEND" --protocol tcp --port 8080

# Backend needs to talk to grafana if the frontend is going to proxy for us
Expand Down
1 change: 0 additions & 1 deletion tdrs-backend/plg/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ deploy_pg_exporter() {
APP_NAME="pg-exporter-$1"

yq eval -i ".applications[0].name = \"$APP_NAME\"" $MANIFEST
yq eval -i ".applications[0].env.PG_EXPORTER_METRIC_PREFIX = \"pg_$1\"" $MANIFEST
yq eval -i ".applications[0].env.DATA_SOURCE_NAME = \"$2\"" $MANIFEST
yq eval -i ".applications[0].services[0] = \"$3\"" $MANIFEST

Expand Down
1 change: 0 additions & 1 deletion tdrs-backend/plg/postgres-exporter/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ applications:
instances: 1
env:
DATA_SOURCE_NAME: {{ db_uri }}
PG_EXPORTER_METRIC_PREFIX: {{ env }}
docker:
image: prometheuscommunity/postgres-exporter:v0.15.0
services:
Expand Down

0 comments on commit cc73759

Please sign in to comment.