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,["# GKE Hub v1 API - Class MonitoringConfig (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.4.0/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.3.0/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.2.0/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.1.0/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/2.0.0/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.2.0/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.1.0/Google.Cloud.GkeHub.V1.MonitoringConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/1.0.0/Google.Cloud.GkeHub.V1.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 v1 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.V1/latest/Google.Cloud.GkeHub.V1.MonitoringConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MonitoringConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.MonitoringConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MonitoringConfig](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1.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.V1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1/latest/Google.Cloud.GkeHub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1.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"]]