Skip to content

Commit

Permalink
Add monitoring Network to Test Setup
Browse files Browse the repository at this point in the history
This network contains all agents and their HDSs.
  • Loading branch information
trobanga committed Sep 10, 2024
1 parent afc89ca commit df28e1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/test/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ networks:
trust-center:
gics:
gpas:
monitoring:

services:
# Clinical Domain
cd-agent:
image: clinical-domain-agent:latest
ports: [ ":8080" ]
networks: [ "agents", "clinical-domain" ]
networks: [ "agents", "clinical-domain", "monitoring" ]
volumes:
- ./cd-agent/projects:/app/projects
- ./deidentifhir/:/app/config/deidentifhir
Expand All @@ -27,7 +28,7 @@ services:
cd-hds:
image: samply/blaze:0.29.3@sha256:47527f478ef2ddf932f4e5c882c0266ac179d7a2fc37ed66868d079698541da3
ports: [ ":8080" ]
networks: [ "clinical-domain" ]
networks: [ "clinical-domain", "monitoring" ]
environment:
BASE_URL: "http://cd-hds:8080"
healthcheck:
Expand All @@ -41,7 +42,7 @@ services:
rd-agent:
image: research-domain-agent:latest
ports: [ ":8080" ]
networks: [ "agents", "research-domain" ]
networks: [ "agents", "research-domain", "monitoring" ]
volumes:
- ./rd-agent/projects:/app/projects
- ./deidentifhir/:/app/config/deidentifhir
Expand All @@ -57,7 +58,7 @@ services:
rd-hds:
image: samply/blaze:0.29.3@sha256:47527f478ef2ddf932f4e5c882c0266ac179d7a2fc37ed66868d079698541da3
ports: [ ":8080" ]
networks: [ "research-domain" ]
networks: [ "research-domain", "monitoring" ]
environment:
BASE_URL: "http://rd-hds:8080"
ENFORCE_REFERENTIAL_INTEGRITY: "false"
Expand All @@ -72,7 +73,7 @@ services:
tc-agent:
image: trust-center-agent:latest
ports: [ ":8080" ]
networks: [ "agents", "trust-center" ]
networks: [ "agents", "trust-center", "monitoring" ]
depends_on:
keystore:
condition: service_started
Expand Down
8 changes: 5 additions & 3 deletions monitoring/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Monitoring-Util

This module contains an example configuration to utilize Prometheus to collect metrics from CDA, RDA, and TCA and
visualize them with Grafana.
This module contains an example configuration to utilize Prometheus to collect metrics from
CDA, RDA, and TCA and visualize them with Grafana.

When using `compose.yaml`make sure to set the NETWORK_NAME environment variable to the same network
of CDA, RDA, and TCA, e.g. `test_agents`, if you are running tests in `.github/test`.
of CDA, RDA, and TCA, e.g. `test_monitoring`, if you are running tests in `.github/test`.
For developer convenience, we set `test_monitoring` as the default.
``
2 changes: 1 addition & 1 deletion monitoring/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ services:
networks: [ "fts" ]
networks:
fts:
name: ${NETWORK_NAME:-fts-smith-care}
name: ${NETWORK_NAME:-test_monitoring}
external: true

0 comments on commit df28e1c

Please sign in to comment.