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 11, 2024
1 parent a4f90b1 commit bf5ca51
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 43 deletions.
2 changes: 2 additions & 0 deletions .github/test/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: fts-test

networks:
agents:
clinical-domain:
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.
``
15 changes: 11 additions & 4 deletions monitoring/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
command:
- --enable-feature=native-histograms
- --config.file=/prometheus.yml
networks: [ "fts" ]
networks: [ "monitoring", "clinical-domain", "research-domain", "trust-center" ]
ports:
- :9090

Expand All @@ -21,8 +21,15 @@ services:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
ports:
- 42128:3000
networks: [ "fts" ]
networks: [ "monitoring" ]
networks:
fts:
name: ${NETWORK_NAME:-fts-smith-care}
monitoring:
clinical-domain:
external: true
name: fts-test_clinical-domain
research-domain:
external: true
name: fts-test_research-domain
trust-center:
external: true
name: fts-test_trust-center
Loading

0 comments on commit bf5ca51

Please sign in to comment.