mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
This commit break long command-line prompts into multiple lines so that the command is visible without scrolling.
56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hosted_control_planes/hcp-prepare/hcp-override-resource-util.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="hcp-disable-metrics_{context}"]
|
|
= Disabling the metric service monitoring
|
|
|
|
After you enable the `hypershift-addon` managed cluster add-on, metric service monitoring is configured by default so that {product-title} monitoring can gather metrics from `hypershift-addon`.
|
|
|
|
.Procedure
|
|
|
|
You can disable metric service monitoring by completing the following steps:
|
|
|
|
. Log in to your hub cluster by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc login
|
|
----
|
|
|
|
. Edit the `hypershift-addon-deploy-config` add-on deployment configuration specification by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc edit addondeploymentconfig hypershift-addon-deploy-config \
|
|
-n multicluster-engine
|
|
----
|
|
|
|
. Add the `disableMetrics=true` customized variable to the specification, as shown in the following example:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: addon.open-cluster-management.io/v1alpha1
|
|
kind: AddOnDeploymentConfig
|
|
metadata:
|
|
name: hypershift-addon-deploy-config
|
|
namespace: multicluster-engine
|
|
spec:
|
|
customizedVariables:
|
|
- name: hcMaxNumber
|
|
value: "80"
|
|
- name: hcThresholdNumber
|
|
value: "60"
|
|
- name: disableMetrics <1>
|
|
value: "true"
|
|
----
|
|
+
|
|
<1> The `disableMetrics=true` customized variable disables metric service monitoring for both new and existing `hypershift-addon` managed cluster add-ons.
|
|
|
|
. Apply the changes to the configuration specification by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f <filename>.yaml
|
|
---- |