Skip to content

Commit

Permalink
- Updated local proxy config to correctly proxy grafana
Browse files Browse the repository at this point in the history
- Add netpol for loki and backend
  • Loading branch information
elipe17 committed Sep 23, 2024
1 parent 9e00a31 commit 5e43a1f
Show file tree
Hide file tree
Showing 4 changed files with 1,992 additions and 20 deletions.
7 changes: 5 additions & 2 deletions scripts/deploy-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ update_plg_networking() {
# 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
# Promtial needs to send logs to Loki
cf add-network-policy "$CGAPPNAME_BACKEND" loki --protocol tcp --port 8080

# Backend needs to talk to Grafana if the frontend is going to proxy for us
cf add-network-policy "$CGAPPNAME_BACKEND" grafana --protocol tcp --port 8080

# Frontend might proxy grafana
# Frontend might proxy Grafana
cf add-network-policy "$CGAPPNAME_FRONTEND" grafana --protocol tcp --port 8080
cf add-network-policy grafana "$CGAPPNAME_FRONTEND" --protocol tcp --port 80
}
Expand Down
2 changes: 1 addition & 1 deletion tdrs-backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ services:
- ./plg/grafana/datasources.local.yml:/usr/share/grafana/conf/provisioning/datasources/datasources.yml
- ./plg/grafana/providers.local.yml:/usr/share/grafana/conf/provisioning/dashboards/providers.yml
- ./plg/grafana/dashboards:/var/lib/grafana/dashboards
- ./plg/grafana/custom.ini:/usr/share/grafana/conf/custom.ini
- ./plg/grafana/custom.local.ini:/usr/share/grafana/conf/custom.ini
- grafana_data:/var/lib/grafana
command: --config /usr/share/grafana/conf/custom.ini

Expand Down
Loading

0 comments on commit 5e43a1f

Please sign in to comment.