Skip to content

Commit 2da9884

Browse files
committed
Make prometheus_rabbitmq_exporter plugin available in v3.8
In order to make this work in 3.8, we had to change the list all available plugins output. The script that we use to list plugins was failing because the rabbitmq-plugins list output changed in 3.8. This might not be intentional, but it's something that we had to address before this would work. cc @hairyhum
1 parent 43fe5b1 commit 2da9884

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

config/blobs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ rabbitmq-plugins/3.7/prometheus_rabbitmq_exporter-v3.7.2.2.ez:
8686
size: 215891
8787
object_id: e368950e-bd10-4ab5-5660-1abd32e2ce93
8888
sha: d6a817d8bd655b41f73c234262e785af41ed18ee
89+
rabbitmq-plugins/3.8/accept-0.3.3.ez:
90+
size: 13397
91+
sha: 44571bfe89be4eac98228a8b7d9b3afd03b4760a
92+
rabbitmq-plugins/3.8/prometheus-3.5.1.ez:
93+
size: 200783
94+
sha: ddbfa5a3b15e8c63247909c63ef88632dd31b748
95+
rabbitmq-plugins/3.8/prometheus_cowboy-0.1.4.ez:
96+
size: 14343
97+
sha: 537969b947d4ddb4166cac826e4a0a243f4e5dc7
98+
rabbitmq-plugins/3.8/prometheus_httpd-2.1.8.ez:
99+
size: 22059
100+
sha: 494e6169a833635238111cd1d3bd1c952c1fe83a
101+
rabbitmq-plugins/3.8/prometheus_rabbitmq_exporter-3.7.2.4.ez:
102+
size: 224548
103+
sha: 00061e8e7b8f836e34b831e88baeb87199c33136
89104
rabtap-1.11.tgz:
90105
size: 3067339
91106
object_id: fc6994ec-ece7-4cca-698a-1ef34281b46c

jobs/rabbitmq-server/templates/bin/_enable_plugins

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/usr/bin/env bash
22

33
set -e
4+
set -o pipefail
45

56
list_available_plugins_with_retry() {
67
# Just in case RabbitMQ is booting
78
# and hasn't discovered all plugins yet,
89
# retry a couple of times
910
for _ in {1..10}
1011
do
11-
rabbitmq-plugins list -m && return 0 # success
12+
(rabbitmq-plugins list --minimal | grep -v "Listing plugins") && return 0 # success
1213
sleep 1
1314
done
1415
return 1 # fail

0 commit comments

Comments
 (0)