File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
logging/victoriametrics/deployment/docker Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,30 @@ services:
124124 networks :
125125 - vm_net
126126
127+ rabbitmq-exporter :
128+ image : kbudde/rabbitmq-exporter:latest
129+ container_name : rabbitmq-exporter
130+ ports :
131+ - " 9419:9419" # Prometheus metrics port
132+ environment :
133+ # AWS MQ RabbitMQ connection details
134+ RABBIT_URL : " ${RABBIT_URL}" # Use environment variable for RabbitMQ URL
135+ RABBIT_PORT : " ${RABBIT_PORT}" # Use environment variable for RabbitMQ port
136+ RABBIT_USER : " ${RABBIT_USER}" # Use environment variable for username
137+ RABBIT_PASSWORD : " ${RABBIT_PASSWORD}" # Use environment variable for password
138+
139+ # Optional: Enable specific capabilities
140+ RABBIT_CAPABILITIES : " bert,no_sort"
141+
142+ # Optional: Configure what to export
143+ PUBLISH_PORT : " 9419"
144+ OUTPUT_FORMAT : " TTY"
145+ LOG_LEVEL : " info"
146+
147+ restart : unless-stopped
148+ networks :
149+ - vm_net
150+
127151volumes :
128152 vmagentdata : {}
129153 vmdata : {}
Original file line number Diff line number Diff line change @@ -11,3 +11,17 @@ scrape_configs:
1111 - job_name : ' victoriametrics'
1212 static_configs :
1313 - targets : ['victoriametrics:8428']
14+
15+ - job_name : ' aws-rabbitmq'
16+ static_configs :
17+ - targets : ['localhost:9419']
18+ scrape_interval : 30s
19+ scrape_timeout : 10s
20+ metrics_path : /metrics
21+
22+ # Optional: Add labels to identify this specific RabbitMQ instance
23+ relabel_configs :
24+ - target_label : ' instance'
25+ replacement : ' aws-mq-production'
26+ - target_label : ' service'
27+ replacement : ' rabbitmq'
You can’t perform that action at this time.
0 commit comments