# GKE Hub V1 API - Class Google::Cloud::GkeHub::V1::MonitoringConfig (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::V1::MonitoringConfig.

This field informs Fleet-based applications/services/UIs with the necessary
information for where each underlying Cluster reports its metrics.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster

    def cluster() -> ::String

**Returns**

- (::String) --- 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`.

### #cluster=

    def cluster=(value) -> ::String

**Parameter**

- **value** (::String) --- 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`.
**Returns**

- (::String) --- 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`.

### #cluster_hash

    def cluster_hash() -> ::String

**Returns**

- (::String) --- 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.

### #cluster_hash=

    def cluster_hash=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #kubernetes_metrics_prefix

    def kubernetes_metrics_prefix() -> ::String

**Returns**

- (::String) --- 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

### #kubernetes_metrics_prefix=

    def kubernetes_metrics_prefix=(value) -> ::String

**Parameter**

- **value** (::String) --- 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
**Returns**

- (::String) --- 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

### #location

    def location() -> ::String

**Returns**

- (::String) --- Immutable. Location used to report Metrics

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. Location used to report Metrics
**Returns**

- (::String) --- Immutable. Location used to report Metrics

### #project_id

    def project_id() -> ::String

**Returns**

- (::String) --- Immutable. Project used to report Metrics

### #project_id=

    def project_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. Project used to report Metrics
**Returns**

- (::String) --- Immutable. Project used to report Metrics