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 580bb9b
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 48 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.
``
25 changes: 16 additions & 9 deletions monitoring/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,32 @@ services:
prometheus:
image: prom/prometheus:v2.54.1@sha256:f6639335d34a77d9d9db382b92eeb7fc00934be8eae81dbc03b31cfe90411a94
volumes:
- ./prometheus.yml:/prometheus.yml
- ./prometheus.yml:/prometheus.yml
command:
- --enable-feature=native-histograms
- --config.file=/prometheus.yml
networks: [ "fts" ]
networks: [ "monitoring", "clinical-domain", "research-domain", "trust-center" ]
ports:
- :9090

grafana:
image: grafana/grafana:11.2.0@sha256:408afb9726de5122b00a2576763a8a57a3c86d5b0eff5305bc994ceb3eb96c3f
volumes:
- ./grafana/datasources.yaml:/etc/grafana/provisioning/datasources/grafana-datasources.yaml
- ./grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/grafana-dashboards.yaml
- ./grafana/dashboards:/etc/grafana/dashboards
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/datasources.yaml:/etc/grafana/provisioning/datasources/grafana-datasources.yaml
- ./grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/grafana-dashboards.yaml
- ./grafana/dashboards:/etc/grafana/dashboards
- ./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 580bb9b

Please sign in to comment.