-
-
Save pedrualves/caf722d3e0cbb6669e245e29a0c4b84f to your computer and use it in GitHub Desktop.
RabbitMQ monitoring with Prometheus and Grafana
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
rabbitmq: | |
image: rabbitmq:3.6.4-management | |
hostname: rabbitmq | |
expose: | |
- "9090" | |
ports: | |
- "4369:4369" | |
- "5671:5671" | |
- "5672:5672" | |
- "15672:15672" | |
- "25672:25672" | |
rabbitmq_exporter: | |
image: kbudde/rabbitmq-exporter | |
depends_on: | |
- "rabbitmq" | |
ports: | |
- "9999:9090" | |
environment: | |
RABBIT_URL: "http://rabbitmq:15672" | |
RABBIT_USER: "guest" | |
RABBIT_PASSWORD: "guest" | |
PUBLISH_PORT: "9090" | |
OUTPUT_FORMAT: "JSON" | |
LOG_LEVEL: "debug" | |
prometheus: | |
image: prom/prometheus:v1.4.1 | |
ports: | |
- "9090:9090" | |
volumes: | |
- ./conf/prometheus.yml:/etc/prometheus/prometheus.yml | |
depends_on: | |
- rabbitmq_exporter | |
grafana: | |
image: grafana/grafana | |
ports: | |
- "3000:3000" | |
depends_on: | |
- prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
external_labels: | |
monitor: 'rabbitmq-monitor' | |
rule_files: | |
scrape_configs: | |
- job_name: 'prometheus' | |
static_configs: | |
- targets: ['localhost:9090'] | |
- job_name: 'rabbitmq' | |
#scrape_interval: 10s | |
static_configs: | |
- targets: ['rabbitmq_exporter:9090'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment