Enable OpenShift Dev Spaces server metrics
Enable the OpenShift Dev Spaces JVM metrics endpoint on port 8087 of the che-host Service to support performance monitoring and capacity planning.
Before you begin
- You have an active
ocsession with administrative permissions to the OpenShift cluster. See This page is not included, but the link has been rewritten to point to the nearest parent document.Getting started with the CLI.
Procedure
Edit the
CheCluster Custom Resource on the cluster:
$ oc edit checluster/devspaces -n openshift-devspacesspec:
components:
metrics:
enable: <boolean>where:
-
<boolean> -
trueto enable,falseto disable.
Results
- Verify the metrics endpoint is accessible:
oc get service che-host -n openshift-devspaces -o jsonpath='{.spec.ports[?(@.port==8087)]}'