diff --git a/docker/prometheus/prometheus.yml b/docker/prometheus/prometheus.yml new file mode 100644 index 0000000..52963a0 --- /dev/null +++ b/docker/prometheus/prometheus.yml @@ -0,0 +1,22 @@ +global: + scrape_interval: 15s + scrape_timeout: 10s + +scrape_configs: + - job_name: 'kafka-server' + static_configs: + - targets: + - 'broker-1:7071' + - 'broker-2:7071' + - 'broker-3:7071' + + - job_name: 'kafka-application-jmx' + static_configs: + - targets: + - 'application:9400' + + - job_name: 'kafka-application-actuator' + metrics_path: '/actuator/prometheus' + static_configs: + - targets: + - 'application:8080' \ No newline at end of file