From 89d8ece91cc7c7725ce116d2e2aaad14b87f9704 Mon Sep 17 00:00:00 2001 From: xiaodino Date: Mon, 25 Mar 2024 01:25:17 -0700 Subject: [PATCH] feat(relayer): enable rabbitmq metrics in prometheus in docker-compose (#16525) --- packages/relayer/docker-compose/docker-compose.yml | 1 + packages/relayer/docker-compose/prometheus.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/packages/relayer/docker-compose/docker-compose.yml b/packages/relayer/docker-compose/docker-compose.yml index 6b86648612f..c2343fb8550 100644 --- a/packages/relayer/docker-compose/docker-compose.yml +++ b/packages/relayer/docker-compose/docker-compose.yml @@ -18,6 +18,7 @@ services: ports: - 5672:5672 - 15672:15672 + - 15692:15692 volumes: - ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/ - ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq diff --git a/packages/relayer/docker-compose/prometheus.yml b/packages/relayer/docker-compose/prometheus.yml index 78804645b0a..578890489cc 100644 --- a/packages/relayer/docker-compose/prometheus.yml +++ b/packages/relayer/docker-compose/prometheus.yml @@ -6,3 +6,7 @@ scrape_configs: scrape_interval: 15s static_configs: - targets: ["localhost:9090"] + + - job_name: "rabbitmq" + static_configs: + - targets: ["host.docker.internal:15692"]