Skip to main content

CODITECT Message Bus Health Check

Part of Track H.2: Inter-Agent Communication Infrastructure

This module provides health checking and monitoring for the RabbitMQ message bus:

  • Connection health verification
  • Queue depth monitoring
  • Consumer status checking
  • Performance metrics collection
  • Alerting thresholds

Usage: # Quick health check python3 scripts/core/message_bus_health.py check

# Detailed status
python3 scripts/core/message_bus_health.py status --verbose

# Monitor continuously
python3 scripts/core/message_bus_health.py monitor --interval 30

# JSON output for automation
python3 scripts/core/message_bus_health.py status --json

Author: CODITECT Framework Created: January 8, 2026 Version: 1.0.0

File: message_bus_health.py

Classes

HealthStatus

Health check result status.

HealthCheckResult

Result of a single health check.

HealthReport

Complete health report for the message bus.

QueueMetrics

Metrics for a single queue.

AlertThresholds

Thresholds for health alerts.

MessageBusHealthChecker

Health checker for RabbitMQ message bus.

Functions

Print health report to console.

to_dict()

No description

to_dict()

No description

to_json(indent)

No description

Usage

python message_bus_health.py