-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openshift): add Configuring Cryostat Quickstart (#668)
* Initial quickstart content, TODO: Formatting * Updating quickstart content, adding icon * Removing broken link * Move quickstart to config/manifests, update kustomization * Quickstart content fixes * Don't include openshift dir * Fix deploy_bundle * New line at EOF --------- Co-authored-by: Elliott Baron <[email protected]> (cherry picked from commit 8378ca0)
- Loading branch information
1 parent
c60d59e
commit 6729ad1
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleQuickStart | ||
metadata: | ||
annotations: | ||
capability.openshift.io/name: Console | ||
name: configuring-cryostat | ||
spec: | ||
icon: >- | ||
data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojZmZmO30uY2xzLTJ7ZmlsbDojMWI0OTY1O30uY2xzLTN7ZmlsbDojOTVjOWU5O30uY2xzLTR7ZmlsbDojNWZhOGQzO308L3N0eWxlPjwvZGVmcz48cG9seWdvbiBjbGFzcz0iY2xzLTQiIHBvaW50cz0iNjYxLjc2IDEzOS40OSA2MDcuMzggODUuMTEgNTUwLjQ1IDE0Mi4wNCA1NTAuNDUgMCA0NzMuNTUgMCA0NzMuNTUgMTQyLjA0IDQxNi42MiA4NS4xMSAzNjIuMjQgMTM5LjQ5IDUxMiAyODkuMjYgNjYxLjc2IDEzOS40OSIvPjxwb2x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1IDg4MS45NiA2MDcuMzggOTM4Ljg5IDY2MS43NiA4ODQuNTEgNTEyIDczNC43NCAzNjIuMjQgODg0LjUxIi8+PHBvbHlnb24gY2xhc3M9ImNscy00IiBwb2ludHM9Ijc1OS43MiA4MjcuOTUgODM0IDgwOC4wNSA4MTMuMTcgNzMwLjI4IDkzNi4xOCA4MDEuMyA5NzQuNjMgNzM0LjcgODUxLjYyIDY2My42OCA5MjkuMzkgNjQyLjg0IDkwOS40OCA1NjguNTUgNzA0LjkgNjIzLjM3IDc1OS43MiA4MjcuOTUiLz48cG9seWdvbiBjbGFzcz0iY2xzLTQiIHBvaW50cz0iOTA5LjQ4IDQ1NS40NCA5MjkuMzkgMzgxLjE2IDg1MS42MiAzNjAuMzIgOTc0LjYzIDI4OS4zIDkzNi4xOCAyMjIuNyA4MTMuMTcgMjkzLjcyIDgzNCAyMTUuOTUgNzU5LjcyIDE5Ni4wNSA3MDQuOSA0MDAuNjMgOTA5LjQ4IDQ1NS40NCIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTUxMi41NCw1NzkuNDdjLTM3LjQ3LDAtNjcuOTYtMzAuNDktNjcuOTYtNjcuOTZzMzAuNDktNjcuOTYsNjcuOTYtNjcuOTZjMjUuMTEsMCw0Ny4wNiwxMy42OSw1OC44MiwzNGw2OS4xNy0zOS43Ni0xMjguNTMtNzQuMjEtMTI4LjUzLDc0LjIxdjE0OC40MmwxMjguNTMsNzQuMjEsMTI4LjUzLTc0LjIxLTY5LjE3LTQwLjczYy0xMS43NywyMC4zLTMzLjcyLDMzLjk5LTU4LjgyLDMzLjk5WiIvPjwvc3ZnPgo= | ||
title: Configure Java applications with the Red Hat build of Cryostat | ||
conclusion: Your Java application has now been configured to be detected by Cryostat. To profile your Java applications with Cryostat, please follow this documentation. | ||
description: Configure your Java applications on OpenShift to be profiled and monitored using the Red Hat build of Cryostat. | ||
durationMinutes: 10 | ||
displayName: Configuring Cryostat | ||
introduction: "Red Hat build of Cryostat is a container-native Java application based on JDK Flight Recorder (JFR). You can use it to monitor the performance of the Java Virtual Machine (JVM) for containerized workloads that run on an OpenShift cluster. | ||
<br /> | ||
<br /> | ||
- To enable Cryostat to gather, store, and analyze Java Flight Recorder (JFR) data about target applications that run on Java Virtual Machine (JVM)s, you must configure the applications so that Cryostat can detect and connect to them. | ||
<br /> | ||
- This requires you to configure your Java applications to allow Java Management Extensions (JMX) connections and use an OpenShift Service for detection and JMX for connectivity. | ||
<br /> | ||
<br /> | ||
JMX is a standard feature on a JVM with which you can monitor and manage target applications that run on the JVM. You must enable and configure JMX when you start the JVM because Red Hat build of Cryostat requires the target applications to expose a JMX port, so that it can communicate with the target applications over this JMX port. Red Hat build of Cryostat starts and stops the JFR recordings and pulls the JFR data over the network, enabling it to store and analyze this JFR data. | ||
<br /> | ||
<br /> | ||
If you have not yet installed the Red Hat Build of Cryostat operator, start with the “Get started with the Red Hat build of Cryostat” quick start. | ||
<br /> | ||
<br /> | ||
In this quick start, you will complete the following tasks: | ||
<br /> | ||
1. Enable remote Java Management Extensions (JMX) connections on your Java application<br /> | ||
2. Update Red Hat OpenShift Services with the remote JMX port<br /> | ||
3. View your Java application as a target in the Red Hat build of Cryostat web application<br /> | ||
Note: The quickstart uses a sample [Quarkus application.](https://github.com/quarkusio/quarkus-quickstarts) You can deploy your own Quarkus application or follow the quarkus-with-s2i quick start.\ " | ||
tasks: | ||
- description: "To enable remote JMX connections: <br /><br /> | ||
1. In the main navigation, click the dropdown menu and select <b>Administrator</b>. <br /> | ||
2. In the navigation menu, click **Workloads > Deployments.** <br /> | ||
3. Click on the quarkus-quickstarts deployment name (or your application’s deployment name). <br /> | ||
4. Click **Environment.** <br /> | ||
5. In the XXX window/panel, add the following environment variable: <br /><br /> | ||
**Name:** JAVA\_OPTS\_APPEND <br /> | ||
**Value:** -Dcom.sun.management.jmxremote.port=9091 <br /> -Dcom.sun.management.jmxremote.authenticate=false <br /> -Dcom.sun.management.jmxremote.ssl=false <br /><br /> | ||
Note: This method enables remote JMX without authentication. For details on configuring authentication with SSL/TLS for Remote JMX, see [Configuring Java applications](https://access.redhat.com/documentation/en-us/red_hat_build_of_cryostat/2/html/getting_started_with_cryostat/assembly_configuing-java-applications_cryostat)<br /><br /> | ||
6. Click **Save.**" | ||
title: "Enable **Remote Java Management Extensions (JMX) connections** on your Java Application" | ||
review: | ||
failedTaskHelp: "This task isn’t verified yet. Try the task again." | ||
instructions: |- | ||
"Click **Reload** at the bottom of the **Environment** tab. | ||
1. Do you see a **single values entry** for **JAVA\_OPTS\_APPEND?**" | ||
summary: | ||
failed: This task isn’t verified yet. Try the task again. | ||
success: You have enabled remote JMX connections. | ||
- description: "To update Red Hat OpenShift Service with the remote JMX port: <br /><br /> In the main navigation, click the dropdown menu and select **Administrator.** <br /> | ||
2. In the navigation menu, click **Networking > Services.** <br /> | ||
3. Click on the quarkus-quickstarts service name (or your application’s service name). <br /> | ||
4. Click the “YAML” tab to open the YAML editor. <br /> | ||
5. In the **spec > ports** section, add a new port for jfr-jmx <br /> | ||
/code <br /> | ||
- name: jfr-jmx <br /> | ||
protocol: TCP <br /> | ||
port: 9091 <br /> | ||
targetPort: 9091 <br /> | ||
6. Click **Save**. <br />" | ||
title: "Updating Red Hat OpenShift Service with the remote JMX port:" | ||
review: | ||
failedTaskHelp: "This task isn't verified yet. Try the task again, or read more about this topic." | ||
instructions: |- | ||
"**Verify that the service port is added to the sample resource:** <br /> | ||
1. In the main navigation, click the dropdown menu and select **Developer.** <br /> | ||
2. In the navigation menu, click **Topology.** <br /> | ||
3. Click **Cryostat-sample pod > Resources.** <br />" | ||
summary: | ||
failed: "This task isn't verified yet. Try the task again, or [read more](https://access.redhat.com/documentation/en-us/red_hat_build_of_cryostat/2/html/getting_started_with_cryostat/assembly_configuing-java-applications_cryostat) about this topic." | ||
success: "You have updated the Red Hat Openshift Service with the Remote JMX Port." | ||
- description: "View your Java application as a target in the Red Hat build of Cryostat web application: <br /><br /> | ||
1. Click on the perspective switcher at the top of the navigation, and select **Developer.** <br /> | ||
2. In the navigation menu, click **Topology.** <br /><br /> The external link icon on **cryostat-sample deployment** represents the route URL. Click on the external link icon to open the URL and run the Cryostat web application in a new browser tab. <br /> | ||
3. Click the external link icon to open the URL and run the Cryostat web application in a new browser tab. | ||
4. Enter your Red Hat OpenShift credentials to log in to the Cryostat web application. <br /> | ||
5. In the web application, click **Recordings** in the navigation menu. <br /> | ||
6. View quarkus-quickstarts (or your deployed application) in the **Targets** list. <br /><br /> | ||
Your Java application has now been configured to be detected by Cryostat. To profile your Java applications with Cryostat, please follow [this documentation.](https://access.redhat.com/documentation/en-us/red_hat_build_of_cryostat/2/html/getting_started_with_cryostat/assembly_creating-recordings_assembly_configuing-java-applications)" | ||
title: "View your Java Application as a target in Cryostat" | ||
review: | ||
failedTaskHelp: "This task isn't verified yet. Try the task again, or read more about this topic." | ||
instructions: |- | ||
"Verify your Java application is running on Red Hat build of Cryostat web application: <br /><br /> | ||
Did your Java application open in a separate browser window?" | ||
conclusion: >- | ||
"Red Hat build of Cryostat is now configured." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- cryostat-quickstart.yaml |