From fe22688f495f4870d9bf40c5935461b5e845f9d9 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Fri, 23 Aug 2024 13:29:11 +0100 Subject: 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 Change-Id: I24a42b8b4771a7d9341e920fbd85fa72e1a3518e --- docker-compose/config/prometheus.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docker-compose/config/prometheus.yml (limited to 'docker-compose/config/prometheus.yml') 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' -- cgit 1.2.3-korg