Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(custom-targets): remove restriction on k8s jfr-jmx/9091, explain localhost:0 #188

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions guides/_subsections/create-a-custom-target.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## [Create a Custom Target](#create-a-custom-target)

**Cryostat** automatically discovers `target` **JVMs** using various mechanisms (e.g.
**Kubernetes API**, **JDP**, [Cryostat Agent plugin](#using-the-cryostat-agent)).
However, in some cases (e.g. for **Kubernetes API**, **JMX** port is not `9091` and
port name is not `jfr-jmx`), **Cryostat** might not see your applications. In these
scenarios you can tell **Cryostat** about them by filling out the *Custom Target*
form to specify *Custom Targets*.
**Cryostat** automatically discovers `target` **JVMs** using various mechanisms
(e.g. **Kubernetes API**, **JDP**, [Cryostat Agent plugin](#using-the-cryostat-agent)).
However, in some cases it may not be feasible or desirable to configure your
application to suit **Cryostat**'s discovery requirements. In these scenarios
you can tell **Cryostat** about them by filling out the *Custom Target* form to
specify *Custom Targets*. This can also be used to have **Cryostat** register
itself as a discovered target by using the special value `localhost:0`, which
informs **Cryostat**'s **JVM** to use a special **JMX** connection to itself
without going through the network stack.

<ol>
<li>
Expand Down Expand Up @@ -57,7 +60,13 @@ form to specify *Custom Targets*.
</a>
<figcaption>
An exclamation mark and an alert banner will show if an error
occurs while connecting to the <code>target</code>.
occurs while connecting to the <code>target</code>. This may
occur if the URL is incorrect due to incorrect hostname or
port number, or if the port is blocked by a firewall or network
policy, or if the JVM listening on the specified port requires
JMX credentials that Cryostat does not have in its keyring, or
if the JVM listening on the specified port presents an SSL/TLS
certificate which Cryostat does not trust.
</figcaption>
</figure>
</p>
Expand Down