Prometheus and Grafana dashboard for monitoring RabbitMQ

This commit is contained in:
2024-11-23 00:05:22 +02:00
parent 64dbc34a13
commit 7654a92e28
7 changed files with 463 additions and 4 deletions

View File

@@ -49,11 +49,11 @@ public class BrokerConnector {
try {
String jsonMessage = generateRandomJson();
channel.basicPublish("", QUEUE_NAME, null, jsonMessage.getBytes(StandardCharsets.UTF_8));
System.out.println("Sent: " + jsonMessage);
// System.out.println("Sent: " + jsonMessage);
} catch (IOException e) {
System.err.println("Failed to send message: " + e.getMessage());
}
}, 0, 10, TimeUnit.SECONDS);
}, 0, 1, TimeUnit.NANOSECONDS);
latch.await();
scheduler.shutdown();