1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # buswatch-adapters
//!
//! Pre-built adapters for collecting metrics from popular message bus systems.
//!
//! This crate provides ready-to-use collectors that automatically gather
//! metrics from message buses and convert them to buswatch format.
//!
//! ## Supported Systems
//!
//! - **RabbitMQ** (`rabbitmq` feature) - Collects queue depths, consumer counts,
//! and message rates via the RabbitMQ Management API
//! - **Kafka** (`kafka` feature) - Collects consumer group lag and partition metrics
//! - **NATS** (`nats` feature) - Collects JetStream consumer and stream metrics
//!
//! ## Quick Start (RabbitMQ)
//!
//! ```rust,ignore
//! use buswatch_adapters::rabbitmq::RabbitMqAdapter;
//! use std::time::Duration;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let adapter = RabbitMqAdapter::builder()
//! .endpoint("http://localhost:15672")
//! .credentials("guest", "guest")
//! .build();
//!
//! // Collect a snapshot
//! let snapshot = adapter.collect().await?;
//!
//! println!("Collected {} modules", snapshot.modules.len());
//! Ok(())
//! }
//! ```
pub use AdapterError;
// Re-export types for convenience
pub use ;