Skip to content

Commit

Permalink
Customizing RabbitMQ image to enable MQTT and STOMP and Prometheus Qu…
Browse files Browse the repository at this point in the history
…eue Metrics.

Removing gago.io and dockerdefinitivo.com from heartbeat
  • Loading branch information
luizcarlosfaria committed May 31, 2021
1 parent 8acc18c commit 924f983
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 6 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ docker-compose up

I've complete abandon SemVer because this does not represent the semantic needs for versioning this stack.

### Products-7.8.0-Stack-2.1.0
### Products-7.13.0-Stack-4.0.0

Update stack from 7.8.0 to 7.13.0.

Adding APM

Adding HeartBeat (for uptime monitoring)

Adding RabbitMQ plugins

Configure Prometheus RabbitMQ integration to expose queue metrics.

### Products-7.8.0-Stack-3.0.0

Update stack from 6.7.0 to 7.8.0.

Expand Down
2 changes: 0 additions & 2 deletions beat/heartbeat/heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ heartbeat.monitors:
urls:
- http://elasticsearch:9200
- http://kibana:5601
- https://gago.io
- https://dockerdefinitivo.com

- type: icmp
schedule: '@every 5s'
Expand Down
8 changes: 5 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ services:
rabbitmq:
container_name: RabbitMQ
hostname: rabbitmq
image: rabbitmq:3-management-alpine
build:
context: ./rabbitmq
volumes:
- rabbitmq_data:/var/lib/rabbitmq/mnesia
ports:
- "15672:15672"
- "5672:5672"
- "15672:15672" #management
- "15692:15692" #prometheus
- "5672:5672" #amqp
healthcheck:
test: ["CMD-SHELL", "curl -I -s -L http://localhost:15672 || exit 1"]
interval: 30s
Expand Down
11 changes: 11 additions & 0 deletions rabbitmq/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM rabbitmq:3.8-management-alpine

ADD ./rabbitmq.conf /etc/rabbitmq/rabbitmq.conf

RUN rabbitmq-plugins enable --offline \
rabbitmq_mqtt rabbitmq_web_mqtt \
rabbitmq_stomp rabbitmq_web_stomp \
rabbitmq_federation rabbitmq_federation_management \
rabbitmq_shovel rabbitmq_shovel_management

RUN apk add curl
8 changes: 8 additions & 0 deletions rabbitmq/rabbitmq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
loopback_users.guest = false
listeners.tcp.default = 5672
management.tcp.port = 15672


prometheus.return_per_object_metrics = true
prometheus.path = /metrics
prometheus.tcp.port = 15692

0 comments on commit 924f983

Please sign in to comment.