You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/12/01 13:05:48 UTC

[camel-performance-tests] 01/02: Kafka Minio: Added instruction for plotting JFR data in Grafana

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch kafka-minio-docs-monitoring
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git

commit 65261ec89fc03c14ca96727422c8399d07d30e46
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Dec 1 14:04:52 2021 +0100

    Kafka Minio: Added instruction for plotting JFR data in Grafana
---
 profiling/kafka/kafka-minio/README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/profiling/kafka/kafka-minio/README.md b/profiling/kafka/kafka-minio/README.md
index b819aa2..9b3b460 100644
--- a/profiling/kafka/kafka-minio/README.md
+++ b/profiling/kafka/kafka-minio/README.md
@@ -154,5 +154,23 @@ cd script/
 
 This command will run 5 burst script with 1000 messages each one with payload "payload" to the Kafka instance running on localhost:9092 and the topic "testtopic"
 
+### Monitoring with Grafana
 
+After running this performance test an output.jfr recording is generated in jfr folder, it is possible to plot jfr metrics to grafana following these steps:
 
+Start jfr-datasource and grafana with preconfigured datasource and dashboard
+
+```
+cd ../monitoring
+docker-compose up
+```
+
+Post recording to jfr-datasource
+
+```
+curl -F "file=@./jfr/output.jfr" "localhost:8080/load"
+```
+
+Now wait 20s so that grafana will poll metrics from jfr-datsource
+
+And then go to grafana `http://localhost:3000` dashboard camel-jfr to observe results (default login is admin/admin)