From cc737594ffd8f696dbbfd13232f8b26f0f4c9472 Mon Sep 17 00:00:00 2001 From: Eric Lipe Date: Mon, 23 Sep 2024 08:46:52 -0400 Subject: [PATCH] - update comment in route - remove unneeded prefix --- scripts/deploy-backend.sh | 2 +- tdrs-backend/plg/deploy.sh | 1 - tdrs-backend/plg/postgres-exporter/manifest.yml | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/deploy-backend.sh b/scripts/deploy-backend.sh index 35942cdda..308a0ca9b 100755 --- a/scripts/deploy-backend.sh +++ b/scripts/deploy-backend.sh @@ -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 diff --git a/tdrs-backend/plg/deploy.sh b/tdrs-backend/plg/deploy.sh index 8eb869b82..d8f08a124 100755 --- a/tdrs-backend/plg/deploy.sh +++ b/tdrs-backend/plg/deploy.sh @@ -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 diff --git a/tdrs-backend/plg/postgres-exporter/manifest.yml b/tdrs-backend/plg/postgres-exporter/manifest.yml index 9ffb57f83..84a82f248 100644 --- a/tdrs-backend/plg/postgres-exporter/manifest.yml +++ b/tdrs-backend/plg/postgres-exporter/manifest.yml @@ -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: