# Google Cloud Dataproc V1 Client - Class MetricSource (3.14.0)

3.14.0 (latest) 3.13.4 3.12.0 3.11.0 3.10.1 3.9.0 3.8.1 3.7.1 3.6.1 3.5.1 3.4.0 3.3.0 3.2.2 2.12.0 2.11.0 2.10.0 2.9.1 2.8.2 2.7.0 2.6.1 2.5.0 2.3.0 2.2.3 2.1.0 2.0.0 Reference documentation and code samples for the Google Cloud Dataproc V1 Client class MetricSource.

A source for the collection of Dataproc custom metrics (see [Custom
metrics](https://cloud.google.com//dataproc/docs/guides/dataproc-metrics#custom_metrics)).

Protobuf type `google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource`

## Namespace

Google \\ Cloud \\ Dataproc \\ V1 \\ DataprocMetricConfig

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### METRIC_SOURCE_UNSPECIFIED

    Value: 0

Required unspecified metric source.

Generated from protobuf enum `METRIC_SOURCE_UNSPECIFIED = 0;`

### MONITORING_AGENT_DEFAULTS

    Value: 1

Monitoring agent metrics. If this source is enabled,
Dataproc enables the monitoring agent in Compute Engine,
and collects monitoring agent metrics, which are published
with an `agent.googleapis.com` prefix.

Generated from protobuf enum `MONITORING_AGENT_DEFAULTS = 1;`

### HDFS

    Value: 2

HDFS metric source.

Generated from protobuf enum `HDFS = 2;`

### SPARK

    Value: 3

Spark metric source.

Generated from protobuf enum `SPARK = 3;`

### YARN

    Value: 4

YARN metric source.

Generated from protobuf enum `YARN = 4;`

### SPARK_HISTORY_SERVER

    Value: 5

Spark History Server metric source.

Generated from protobuf enum `SPARK_HISTORY_SERVER = 5;`

### HIVESERVER2

    Value: 6

Hiveserver2 metric source.

Generated from protobuf enum `HIVESERVER2 = 6;`

### HIVEMETASTORE

    Value: 7

hivemetastore metric source

Generated from protobuf enum `HIVEMETASTORE = 7;`