Skip to content

[OSDOCS-22109]: HCP per-cluster metrics forwarding - #119848

Open
lahinson wants to merge 1 commit into
openshift:mainfrom
lahinson:osdocs-22109-hcp-per-cluster-metrics-forwarding
Open

lahinson wants to merge 1 commit into
openshift:mainfrom
lahinson:osdocs-22109-hcp-per-cluster-metrics-forwarding

Conversation

@lahinson

@lahinson lahinson commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

@lahinson lahinson added this to the Continuous Release milestone Sep 15, 2026
@openshift-ci openshift-ci Bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Sep 15, 2026
@ocpdocs-previewbot

ocpdocs-previewbot commented Sep 15, 2026

Copy link
Copy Markdown

Comment thread modules/hcp-hostedcluster-annotations.adoc Outdated
Comment thread modules/hcp-hostedcluster-annotations.adoc Outdated
Comment thread modules/hcp-hostedcluster-annotations.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-about.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-about.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-about.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-annotation-deprecated.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-annotation-deprecated.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-annotation-deprecated.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-api-reference.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-api-reference.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-api-reference.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-api-reference.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-api-reference.adoc Outdated
. Determine the metrics set value to use for each cluster.
+
The annotation enables forwarding but does not specify a metrics set.
The HyperShift Operator uses the global `METRICS_SET` environment variable as the source.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. "HyperShift Operator" is a valid usage of "HyperShift".

-o jsonpath='{.spec.template.spec.containers[?(@.name=="operator")].env[?(@.name=="METRICS_SET")].value}'
----
+
`hypershift` is the namespace where the HyperShift Operator is typically installed,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. "HyperShift Operator" is a valid usage of "HyperShift".

You can enable and configure control plane metrics forwarding independently for each hosted cluster
by setting the `spec.monitoring.metricsForwarding` field on the `HostedCluster` object.
This lets you select different metrics sets for different hosted clusters on the same management cluster
without changing the global HyperShift Operator configuration.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. "HyperShift Operator" is a valid usage of "HyperShift".

Replace `<hosted_cluster_namespace>` with the namespace of the hosted cluster
and `<hosted_cluster_name>` with the name of the hosted cluster.
+
When you set `mode: Forward`, the HyperShift Operator deploys the `metrics-proxy` and

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. "HyperShift Operator" is a valid usage of "HyperShift".

. Optional: Set the metrics set for this hosted cluster.
+
If you omit this step, the cluster inherits the global `METRICS_SET` environment variable
from the HyperShift Operator deployment, which defaults to `Telemetry`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. "HyperShift Operator" is a valid usage of "HyperShift".

Comment thread modules/hcp-metrics-forwarding-per-cluster-configure.adoc Outdated
Comment thread modules/hcp-metrics-forwarding-per-cluster-configure.adoc Outdated
@lahinson
lahinson force-pushed the osdocs-22109-hcp-per-cluster-metrics-forwarding branch 2 times, most recently from 48a9124 to 018db48 Compare September 16, 2026 14:38
Comment thread modules/hcp-cp-metrics-forwarding.adoc Outdated

. `spec.monitoring.metricsForwarding.metricsSet` on the `HostedCluster` object
. `spec.monitoring.metricsSet` on the `HostedCluster` object
. Global `METRICS_SET` environment variable on the HyperShift Operator deployment (defaults to `Telemetry` if not set)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. "HyperShift Operator" is a valid use of "HyperShift".

= Configuring per-cluster control plane metrics forwarding

[role="_abstract"]
You can enable and configure control plane metrics forwarding independently for each hosted cluster by setting the `spec.monitoring.metricsForwarding` field on the `HostedCluster` object. As a result, you can select different metrics sets for different hosted clusters on the same management cluster without changing the global HyperShift Operator configuration.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. "HyperShift Operator" is a valid use of "HyperShift".

+
[NOTE]
====
If the deprecated `hypershift.openshift.io/enable-metrics-forwarding` annotation is also set on the `HostedCluster` object, the `spec.monitoring.metricsForwarding` field takes precedence. For information about the deprecated annotation and migrating to the new API, see "Deprecated annotation: hypershift.openshift.io/enable-metrics-forwarding".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'hypershift'. For more information, see RedHat.TermsErrors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring. This usage is a valid usage of "hypershift".

@lahinson
lahinson force-pushed the osdocs-22109-hcp-per-cluster-metrics-forwarding branch from 018db48 to 1ead607 Compare September 16, 2026 15:27
@openshift-ci openshift-ci Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 16, 2026
@lahinson
lahinson force-pushed the osdocs-22109-hcp-per-cluster-metrics-forwarding branch 2 times, most recently from 871d0c5 to a795701 Compare September 16, 2026 15:32
Comment thread modules/hcp-cp-metrics-forwarding-configure.adoc
Comment thread modules/hcp-cp-metrics-forwarding-configure.adoc Outdated
Comment thread modules/hcp-cp-metrics-forwarding-configure.adoc
Comment thread modules/hcp-cp-metrics-forwarding-migrate.adoc
Comment thread modules/hcp-cp-metrics-forwarding-migrate.adoc Outdated
@lahinson
lahinson force-pushed the osdocs-22109-hcp-per-cluster-metrics-forwarding branch from a795701 to 3f574fe Compare September 16, 2026 16:21
+
The annotation continues to be honored when `spec.monitoring` is not set on the `HostedCluster` object. If you set `spec.monitoring.metricsForwarding` on a cluster, the spec field takes precedence and the annotation is ignored for that cluster, even if both are present.
+
Migrate all hosted clusters that use the `hypershift.openshift.io/enable-metrics-forwarding` annotation to use `spec.monitoring.metricsForwarding` before the annotation is removed in a future release. For more information, see xref:../hosted_control_planes/hcp-observability.adoc#hcp-cp-metrics-forwarding-migrate_hcp-observability[Migrating from annotation-based to API-based metrics forwarding].

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] OpenShiftAsciiDoc.NoXrefInModules: Do not include xrefs in modules, only assemblies (exception: release notes modules).

@lahinson
lahinson force-pushed the osdocs-22109-hcp-per-cluster-metrics-forwarding branch 2 times, most recently from 5341e3c to f527755 Compare September 16, 2026 17:15
@lahinson
lahinson force-pushed the osdocs-22109-hcp-per-cluster-metrics-forwarding branch from f527755 to 9364459 Compare September 16, 2026 18:23
-o jsonpath='{.spec.template.spec.containers[?(@.name=="operator")].env[?(@.name=="METRICS_SET")].value}'
----
+
In the command, `hypershift` is the namespace where the HyperShift Operator is typically installed, and `operator` is the standard deployment name. These values might differ in non-standard installations.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'hosted control planes' rather than 'HyperShift'. For more information, see RedHat.TermsErrors.

@openshift-ci

openshift-ci Bot commented Sep 16, 2026

Copy link
Copy Markdown

@lahinson: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch/enterprise-5.0 size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants