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"]],[["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\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,["# GKE Hub v1beta1 API - Class MonitoringConfig (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MonitoringConfig)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta06/Google.Cloud.GkeHub.V1Beta1.MonitoringConfig)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.MonitoringConfig) \n\n public sealed class MonitoringConfig : IMessage\u003cMonitoringConfig\u003e, IEquatable\u003cMonitoringConfig\u003e, IDeepCloneable\u003cMonitoringConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1beta1 API class MonitoringConfig.\n\nThis field informs Fleet-based applications/services/UIs with the necessary\ninformation for where each underlying Cluster reports its metrics. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MonitoringConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MonitoringConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MonitoringConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MonitoringConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MonitoringConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MonitoringConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MonitoringConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeHub.V1Beta1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1Beta1.dll\n\nConstructors\n------------\n\n### MonitoringConfig()\n\n public MonitoringConfig()\n\n### MonitoringConfig(MonitoringConfig)\n\n public MonitoringConfig(MonitoringConfig other)\n\nProperties\n----------\n\n### Cluster\n\n public string Cluster { get; set; }\n\nImmutable. Cluster name used to report metrics.\nFor Anthos on VMWare/Baremetal, it would be in format\n`memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in\nformat\n`{azureClusters, awsClusters}/cluster_name`.\n\n### ClusterHash\n\n public string ClusterHash { get; set; }\n\nImmutable. Cluster hash, this is a unique string generated by google code,\nwhich does not contain any PII, which we can use to reference the cluster.\nThis is expected to be created by the monitoring stack and persisted into\nthe Cluster object as well as to GKE-Hub.\n\n### KubernetesMetricsPrefix\n\n public string KubernetesMetricsPrefix { get; set; }\n\nKubernetes system metrics, if available, are written to this prefix.\nThis defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos\neventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today\nbut will migration to be under kubernetes.io/anthos\n\n### Location\n\n public string Location { get; set; }\n\nImmutable. Location used to report Metrics\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nImmutable. Project used to report Metrics"]]