Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
IT Security NachrichtenBetrüger phishen mit vermeintlicher Reisebestätigung - IT-Markt(24.09.2026 um 23:41 Uhr)
••
Sicherheitslücken (CVE)IT Security News Daily Summary 2026-09-24(24.09.2026 um 23:55 Uhr)
•
Sicherheitslücken (CVE)IT Security News Roundup: 2026-09-24(24.09.2026 um 23:57 Uhr)
•
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-25 00h : 9 posts(25.09.2026 um 00:00 Uhr)
•••
IT NachrichtenMicrosoft puts Brad Smith in charge of communications(25.09.2026 um 00:08 Uhr)
•••
IT Security NachrichtenBetrüger phishen mit vermeintlicher Reisebestätigung - IT-Markt(24.09.2026 um 23:41 Uhr)
••
Sicherheitslücken (CVE)IT Security News Daily Summary 2026-09-24(24.09.2026 um 23:55 Uhr)
•
Sicherheitslücken (CVE)IT Security News Roundup: 2026-09-24(24.09.2026 um 23:57 Uhr)
•
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-25 00h : 9 posts(25.09.2026 um 00:00 Uhr)
•••
IT NachrichtenMicrosoft puts Brad Smith in charge of communications(25.09.2026 um 00:08 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

RabbitMQ Monitoring with Prometheus and Grafana

In this project, I completed two setups for RabbitMQ monitoring with Prometheus and Grafana. The first setup is a local Docker Compose setup for quick testing while the other is a 3-node RabbitMQ cluster setup on AWS EC2 for scalability…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

In this project, I completed two setups for RabbitMQ monitoring with Prometheus and Grafana. The first setup is a local Docker Compose setup for quick testing while the other is a 3-node RabbitMQ cluster setup on AWS EC2 for scalability and real-world applications.






Overview of the Project



RabbitMQ is a popular message broker that plays a crucial role in distributed systems. This project aimed to:

I. Set up a RabbitMQ environment both locally and on AWS.

II. Monitor RabbitMQ metrics using Prometheus and visualize them with Grafana.

III. Test the message queuing system using Python scripts.







Part 1: Local RabbitMQ Setup Using Docker Compose



Why Local Setup?


The local setup serves as a quick testing environment before deploying to the cloud.



Steps to Set Up:



I. Clone the RabbitMQ Repository:




   git clone https://github.com/rabbitmq/rabbitmq-server.git
cd rabbitmq-server/deps/rabbitmq_prometheus/docker






II. Run Docker Compose:

Use Docker Compose to start the RabbitMQ cluster and Prometheus instance, along with a basic workload to generate meaningful metrics. This will start a RabbitMQ cluster, Prometheus, and Grafana with predefined configurations, collecting metrics from RabbitMQ.




   docker-compose -f docker-compose-metrics.yml up -d
docker-compose -f docker-compose-overview.yml up -d






docker_compose_metrics



Rabbit_Metrics



Docker_Containers



III. Access RabbitMQ Dashboard:




  • URL: http://localhost:15672

  • Default credentials:
    Username: guest
    Password: guest



IV. Access Grafana Dashboard:




  • URL: http://localhost:3000

  • Default credentials:
    Username: admin
    Password: admin



Image description



Grafana_metrics_2



Grafana_metrics_3









Part 2: RabbitMQ 3-Node Cluster on AWS EC2



Why a Cluster?


To ensure high availability and load distribution in production.





Prerequisites



3 AWS EC2 instances running Ubuntu 24.04 for RabbitMQ and one each for Prometheus and Grafana. Configure the Security Groups as follows:





  • RabbitMQ Security Groups:




    • Allow SSH (port 22) from your IP.

    • Allow RabbitMQ Management UI (port 15672) from your IP.

    • Allow RabbitMQ Prometheus Metrics (port 15692) from Prometheus instance SG.




  • Prometheus Security Groups:




    • Allow HTTP (port 80) from your IP.

    • Allow HTTPS (port 443) from your IP.

    • Allow Grafana (port 3000) from your IP.




  • Grafana Security Groups:




    • Allow HTTP (port 80) from your IP.

    • Allow HTTPS (port 443) from your IP.







Step-by-Step Guide



I. Install RabbitMQ on All 3 Nodes:

Use a bash script as EC2 user data during instance launch or save it and run it on each EC2 instance. The bash script I used is named rabbitmq_installation.sh in my git repository. It includes all the plugins needed to help Prometheus scrape metrics from RabbitMQ.



RabbitMQ_Nodes_Running



II. Cluster Configuration:





  • Verify Erlang cookie consistency:



     sudo cat /var/lib/rabbitmq/.erlang.cookie




    Ensure the same cookie is on all 3 RabbitMQ EC2 nodes.








  • Join nodes to form a cluster:



     sudo rabbitmqctl stop_app
    sudo rabbitmqctl reset
    sudo rabbitmqctl join_cluster rabbit@<master-node-hostname>
    sudo rabbitmqctl start_app









III. Verify Cluster Status:




   sudo rabbitmqctl cluster_status






3-EC2 Nodes Joined









Part 3: Monitoring with Prometheus and Grafana






Prometheus Setup on AWS EC2



I. Install Prometheus Using a Bash Script:

I used a Bash script named prometheus.sh saved in my git repository to install Prometheus and it includes all the plugins needed. Save this script on your Prometheus EC2 and run the script.




   ./prometheus.sh






II. Configure Prometheus:

Edit prometheus.yml to scrape RabbitMQ metrics:




   scrape_configs:
- job_name: 'rabbitmq'
static_configs:
- targets: ['<rabbitmq-node-1-ip>:15692', '<rabbitmq-node-2-ip>:15692', '<rabbitmq-node-3-ip>:15692']






III. Run Prometheus:




   /usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml






Prometheus_UI_Showing_RabbitMQ_Cluster






Grafana Setup on AWS EC2



I. Install Grafana Using a Bash Script:




   #!/bin/bash
sudo apt update -y
sudo apt install -y wget unzip
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-11.4.0.linux-arm64.tar.gz
tar xvf grafana-enterprise-11.4.0.linux-arm64.tar.gz
sudo mv grafana-11.4.0 /usr/local/grafana
echo 'Grafana installed.'






II. Configure Grafana:




  • Add Prometheus as a data source in Grafana

  • Import RabbitMQ dashboards - the file is named RabbitMQ-Overview.json



III. Verify Metrics on Grafana:




  • URL: http://<grafana-ip>:3000

  • Navigate to imported RabbitMQ dashboards to monitor metrics.



Grafana_running









Part 4: Testing the Message Queue



Using Python scripts, I tested message publishing and consumption:




import pika

# Connection setup
credentials = pika.PlainCredentials('guest', 'guest')
connection = pika.BlockingConnection(pika.ConnectionParameters('rabbitmq-node-ip', credentials=credentials))
channel = connection.channel()

# Declare queue
channel.queue_declare(queue='test_queue')

# Publish message
channel.basic_publish(exchange='', routing_key='test_queue', body='Hello RabbitMQ!')
print("Message published.")

# Consume message
def callback(ch, method, properties, body):
print(f"Received: {body}")

channel.basic_consume(queue='test_queue', on_message_callback=callback, auto_ack=True)
channel.start_consuming()






Grafana showing metrics scrapped by Prometheus

Grafana_showing_metrics



Grafana_showing_metrics_2









Final Thoughts



This project showcased the power of RabbitMQ in a distributed setup and the importance of monitoring using Prometheus and Grafana. Whether for testing or production, the tools and techniques used here ensure a scalable and observable messaging system.

CTI Threat Relationship Graph4 Knoten / 3 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - RabbitMQ Monitoring with Prometheus and Grafana
id: 03a8a8b3-62b6-4126-8842-5623149e9b6a
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-25
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
  - attack.t1059
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-25"
        description = "YARA Signature for "
    strings:
        $str = "RabbitMQ Monitoring with Prome" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("RabbitMQ Monitoring with Prometheus and ")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*RabbitMQ Monitoring with Prometheus and *"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "RabbitMQ Monitoring with Prometheus and "
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Identifiziert: T1059Command and Scripting Interpreter
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich RabbitMQ Monitoring with Prometheus and .... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten RabbitMQ Monitoring with Prometheus and Grafana

Thematisch verwandte Begriffe: RabbitMQ, Monitoring, with, Prometheus · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-87722 | Uncontrolled Resource Consumption (CWE-400 / CWE-1333) in regex search q…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel • Rechts: nächster Artikel • unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...
↗ Original-Quelle