public sealed class MonitoringConfig : IMessage<MonitoringConfig>, IEquatable<MonitoringConfig>, IDeepCloneable<MonitoringConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1 API class MonitoringConfig.
This field informs Fleet-based applications/services/UIs with the necessary
information for where each underlying Cluster reports its metrics.
Immutable. Cluster name used to report metrics.
For Anthos on VMWare/Baremetal, it would be in format
memberClusters/cluster_name; And for Anthos on MultiCloud, it would be in
format
{azureClusters, awsClusters}/cluster_name.
Immutable. Cluster hash, this is a unique string generated by google code,
which does not contain any PII, which we can use to reference the cluster.
This is expected to be created by the monitoring stack and persisted into
the Cluster object as well as to GKE-Hub.
public string KubernetesMetricsPrefix { get; set; }
Kubernetes system metrics, if available, are written to this prefix.
This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
but will migration to be under kubernetes.io/anthos
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eMonitoringConfig\u003c/code\u003e class within the Google Cloud GKE Hub v1 API, specifically detailing its role in informing applications and services about where clusters report their metrics.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMonitoringConfig\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.GkeHub.V1\u003c/code\u003e namespace, is the latest release at version 2.5.0, but previous versions back to 1.0.0 are also available in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe class, which inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, has properties to define the \u003ccode\u003eCluster\u003c/code\u003e, \u003ccode\u003eClusterHash\u003c/code\u003e, \u003ccode\u003eKubernetesMetricsPrefix\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, and \u003ccode\u003eProjectId\u003c/code\u003e for reporting metrics.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMonitoringConfig\u003c/code\u003e includes constructors that allow for the creation of new instances as well as copying existing \u003ccode\u003eMonitoringConfig\u003c/code\u003e objects, with the ability to view the available documentation for each.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMonitoringConfig\u003c/code\u003e class is used to track a cluster's metrics, including its name, unique hash, Kubernetes metrics prefix, location, and project ID, as well as specify the format for cluster names based on the type of Anthos deployment.\u003c/p\u003e\n"]]],[],null,[]]