diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-08-23 13:29:11 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-08-23 16:36:45 +0100 |
commit | fe22688f495f4870d9bf40c5935461b5e845f9d9 (patch) | |
tree | 255b1328c8f585615a9e811a8a76fcc5cc7660b1 /docker-compose/config/prometheus.yml | |
parent | 64ff45847a3466cb24a8dab57b65be753ee3cd03 (diff) |
Support 2 CPS instances in Prometheus/Grafana
- Specify both cps-and-ncmp instances in Prometheus config
- Add default JVM Micrometer dashboard to Grafana, taken from
https://grafana.com/grafana/dashboards/4701-jvm-micrometer/
Issue-ID: CPS-2314
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I24a42b8b4771a7d9341e920fbd85fa72e1a3518e
Diffstat (limited to 'docker-compose/config/prometheus.yml')
-rw-r--r-- | docker-compose/config/prometheus.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker-compose/config/prometheus.yml b/docker-compose/config/prometheus.yml new file mode 100644 index 0000000000..89af4a6800 --- /dev/null +++ b/docker-compose/config/prometheus.yml @@ -0,0 +1,12 @@ +global: + scrape_interval: 5s + evaluation_interval: 5s + +scrape_configs: + - job_name: 'cps-and-ncmp' + metrics_path: '/actuator/prometheus' + scrape_interval: 5s + static_configs: + - targets: + - 'docker-compose-cps-and-ncmp-1:8080' + - 'docker-compose-cps-and-ncmp-2:8080' |