public sealed class MonitoringConfig : IMessage<MonitoringConfig>, IEquatable<MonitoringConfig>, IDeepCloneable<MonitoringConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the GKE Hub v1beta1 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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMonitoringConfig\u003c/code\u003e class provides information for Fleet-based applications regarding where each underlying cluster reports its metrics, and it is part of the GKE Hub v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, allowing for message management, comparison, cloning, and efficient handling.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMonitoringConfig\u003c/code\u003e objects are created with a default constructor or by copying an existing \u003ccode\u003eMonitoringConfig\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \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, which hold immutable information about the cluster name, unique identifier, metrics prefix, reporting location, and reporting project, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eMonitoringConfig\u003c/code\u003e available to use, the most current being \u003ccode\u003e2.0.0-beta07\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]