Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Monitoring #199

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 5 additions & 0 deletions monitoring/grafana/dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ providers:
options:
path: /etc/grafana/dashboards/http-requests.json

- name: 'Blaze'
type: file
options:
path: /etc/grafana/dashboards/blaze.json

- name: 'HTTP Requests Retries'
type: file
options:
Expand Down
Loading