davsclaus commented on code in PR #21534: URL: https://github.com/apache/camel/pull/21534#discussion_r2926097784
########## docs/user-manual/modules/ROOT/pages/camel-jbang.adoc: ########## @@ -2484,6 +2484,34 @@ then Camel will attempt to uninstall the Jolokia JVM Agent. However, this may no able to do this always, because the JVM is being terminated which can prevent camel-jbang from doing JVM process communication to the running Camel integration. +=== Visualizing routes with diagram + +The `camel diagram` command uses Hawtio to visualize Camel routes. You can run route files in the background and open Hawtio in a browser: + +[source,bash] +---- +camel diagram routes.yaml +---- + +To attach to an existing integration: + +[source,bash] +---- +camel diagram --name my-integration +---- + +By default Camel JBang stops the background integration when you exit Hawtio; use `--keep-running` to leave it running. + +You can export a PNG snapshot using Playwright (requires a Chromium browser binary and executable path configured): + +[source,bash] +---- +camel diagram routes.yaml --output=routes.png --playwright-browser-path=/path/to/chrome +---- + +When using `--output`, Hawtio runs headless and the PNG is captured automatically. Review Comment: A good idea is to add that actual long command you typed to run on your mac, as mac users need to point to that /Content/XXX or whatever inside those apps - so users would maybe struggle if they dont have a real working example to see ########## docs/user-manual/modules/ROOT/pages/camel-jbang.adoc: ########## @@ -2484,6 +2484,34 @@ then Camel will attempt to uninstall the Jolokia JVM Agent. However, this may no able to do this always, because the JVM is being terminated which can prevent camel-jbang from doing JVM process communication to the running Camel integration. +=== Visualizing routes with diagram + +The `camel diagram` command uses Hawtio to visualize Camel routes. You can run route files in the background and open Hawtio in a browser: Review Comment: the diagram is a plugin you need to install first via `camel plugin add diagram` also I think there is some code where we have a known list of plugins we ship so diagram should be added there also -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
