RabbitMQ Monitoring Framework
Overview:
During my second internship at Novicell, I identified a significant tooling gap while conducting my earlier feasibility study on RabbitMQ for high‑throughput e‑commerce workloads. Although the .NET ecosystem offered mature libraries for publishing and consuming messages, it lacked a dedicated C# framework for real‑time monitoring of RabbitMQ cluster health. Given the operational demands of Novicell’s A‑Team—responsible for platforms such as Power.dk, Biltema.dk, and Apoteket.dk—I proposed a focused project to design a lightweight, read‑only monitoring library capable of providing developers with live insights into RabbitMQ cluster metrics.
flowchart LR
subgraph existing["Existing .NET tools"]
direction TB
publishing["✓ Publishing<br/>send messages"] ~~~ consuming["✓ Consuming<br/>receive messages"]
end
subgraph missing["Missing tool"]
monitoring["✗ Monitoring<br/>cluster health metrics<br/>real-time observability<br/>performance insights"]
end
existing -. "gap: no C# framework" .-> missing
Challenges and Technical Hurdles:
RabbitMQ exposes a powerful management API, but at the time no C# tooling existed to consume its metadata dynamically or translate it into usable, structured types. The challenge was to build a monitoring solution that could adapt to RabbitMQ’s evolving specifications without hard‑coded models, while maintaining strong typing and compatibility with .NET applications. The project also had to remain strictly read‑only, offering no administrative or write capabilities, ensuring that its function remained safe, transparent, and observably focused.
flowchart LR
subgraph traditional["Traditional"]
direction TB
hardCoded["Hard-coded models"] --> manualUpdates["Manual updates"]
manualUpdates --> traditionalCost["✗ Breaks on API changes<br/>✗ Requires code updates<br/>✗ Version-specific"]
end
subgraph dynamic["Dynamic"]
direction TB
runtimeGeneration["Runtime generation"] --> selfAdapting["Self-adapting"]
selfAdapting --> dynamicGain["✓ Adapts automatically<br/>✓ No manual updates<br/>✓ Version-agnostic"]
end
traditional ==> dynamic
Action and Problem-Solving:
To address this challenge, I designed a framework that queried the RabbitMQ server at startup, retrieved the full JSON specification of available metrics, and used reflection to generate the corresponding data structures dynamically. This approach allowed the library to construct its own internal model based entirely on the server’s metadata, similar in spirit to how modern API ecosystems use OpenAPI/Swagger documents for schema-driven code generation. The result was a minimal yet flexible architecture capable of parsing any metric the cluster made available—without requiring manual updates or predefined classes.
flowchart TB
query["1 · Query<br/>retrieve the RabbitMQ API specification"] --> parse["2 · Parse<br/>extract the JSON metadata schema"]
parse --> generate["3 · Generate<br/>dynamic types via .NET reflection"]
generate -.- innovation["No hard-coded models: adapts to any RabbitMQ version<br/>Runtime introspection: self-configuring at startup<br/>Like OpenAPI / Swagger schema-driven generation"]
Skills and Innovations:
This project demonstrated my ability to combine architectural insight with sophisticated runtime tooling techniques. Implementing dynamic type generation required a deep understanding of RabbitMQ’s management API, JSON schema parsing, reflection, and the constraints of designing safe, read‑only interfaces. While conceptually aligned with modern standards, the solution was built entirely from scratch, tailored to Novicell’s operational needs, and designed to be seamlessly integrated into internal diagnostic workflows or developer tools.
flowchart LR
subgraph capabilities["✓ Capabilities"]
direction TB
metrics["Real-time metrics<br/>live cluster health"] ~~~ types["Dynamic types<br/>generated at runtime"]
types ~~~ readOnly["Read-only<br/>safe observability"]
end
subgraph constraints["Constraints"]
direction TB
noWrite["No write access<br/>monitoring only"] ~~~ noAdministration["No administration<br/>read operations only"]
noAdministration ~~~ transparent["Transparent<br/>safe by design"]
end
capabilities ~~~ constraints
Conclusion and Impact:
Although the monitoring framework ultimately did not proceed into production use, it successfully fulfilled the goals of my internship and academic examination. It provided a clear demonstration of how RabbitMQ’s management API could be leveraged for real‑time observability and offered a proof‑of‑concept for dynamic schema‑driven tooling in .NET. The project further solidified my understanding of distributed system monitoring, runtime introspection, and flexible library design—while contributing meaningful insights into how Novicell might approach internal RabbitMQ observability in the future.