Send feedback
Google Cloud Dataproc V1 Client - Class MetricSource (3.14.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
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 ).
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
Required unspecified metric source.
Generated from protobuf enum METRIC_SOURCE_UNSPECIFIED = 0;
MONITORING_AGENT_DEFAULTS
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
HDFS metric source.
Generated from protobuf enum HDFS = 2;
SPARK
Spark metric source.
Generated from protobuf enum SPARK = 3;
YARN
YARN metric source.
Generated from protobuf enum YARN = 4;
SPARK_HISTORY_SERVER
Spark History Server metric source.
Generated from protobuf enum SPARK_HISTORY_SERVER = 5;
HIVESERVER2
Hiveserver2 metric source.
Generated from protobuf enum HIVESERVER2 = 6;
hivemetastore metric source
Generated from protobuf enum HIVEMETASTORE = 7;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Dataproc V1 Client - Class MetricSource (3.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.14.0 (latest)](/php/docs/reference/cloud-dataproc/latest/V1.DataprocMetricConfig.MetricSource)\n- [3.13.4](/php/docs/reference/cloud-dataproc/3.13.4/V1.DataprocMetricConfig.MetricSource)\n- [3.12.0](/php/docs/reference/cloud-dataproc/3.12.0/V1.DataprocMetricConfig.MetricSource)\n- [3.11.0](/php/docs/reference/cloud-dataproc/3.11.0/V1.DataprocMetricConfig.MetricSource)\n- [3.10.1](/php/docs/reference/cloud-dataproc/3.10.1/V1.DataprocMetricConfig.MetricSource)\n- [3.9.0](/php/docs/reference/cloud-dataproc/3.9.0/V1.DataprocMetricConfig.MetricSource)\n- [3.8.1](/php/docs/reference/cloud-dataproc/3.8.1/V1.DataprocMetricConfig.MetricSource)\n- [3.7.1](/php/docs/reference/cloud-dataproc/3.7.1/V1.DataprocMetricConfig.MetricSource)\n- [3.6.1](/php/docs/reference/cloud-dataproc/3.6.1/V1.DataprocMetricConfig.MetricSource)\n- [3.5.1](/php/docs/reference/cloud-dataproc/3.5.1/V1.DataprocMetricConfig.MetricSource)\n- [3.4.0](/php/docs/reference/cloud-dataproc/3.4.0/V1.DataprocMetricConfig.MetricSource)\n- [3.3.0](/php/docs/reference/cloud-dataproc/3.3.0/V1.DataprocMetricConfig.MetricSource)\n- [3.2.2](/php/docs/reference/cloud-dataproc/3.2.2/V1.DataprocMetricConfig.MetricSource)\n- [2.6.1](/php/docs/reference/cloud-dataproc/2.6.1/V1.DataprocMetricConfig.MetricSource)\n- [2.5.0](/php/docs/reference/cloud-dataproc/2.5.0/V1.DataprocMetricConfig.MetricSource)\n- [2.3.0](/php/docs/reference/cloud-dataproc/2.3.0/V1.DataprocMetricConfig.MetricSource)\n- [2.2.3](/php/docs/reference/cloud-dataproc/2.2.3/V1.DataprocMetricConfig.MetricSource)\n- [2.1.0](/php/docs/reference/cloud-dataproc/2.1.0/V1.DataprocMetricConfig.MetricSource)\n- [2.0.0](/php/docs/reference/cloud-dataproc/2.0.0/V1.DataprocMetricConfig.MetricSource) \nReference documentation and code samples for the Google Cloud Dataproc V1 Client class MetricSource.\n\nA source for the collection of Dataproc custom metrics (see [Custom\nmetrics](https://cloud.google.com//dataproc/docs/guides/dataproc-metrics#custom_metrics)).\n\nProtobuf type `google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataproc \\\\ V1 \\\\ DataprocMetricConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### METRIC_SOURCE_UNSPECIFIED\n\n Value: 0\n\nRequired unspecified metric source.\n\nGenerated from protobuf enum `METRIC_SOURCE_UNSPECIFIED = 0;`\n\n### MONITORING_AGENT_DEFAULTS\n\n Value: 1\n\nMonitoring agent metrics. If this source is enabled,\nDataproc enables the monitoring agent in Compute Engine,\nand collects monitoring agent metrics, which are published\nwith an `agent.googleapis.com` prefix.\n\nGenerated from protobuf enum `MONITORING_AGENT_DEFAULTS = 1;`\n\n### HDFS\n\n Value: 2\n\nHDFS metric source.\n\nGenerated from protobuf enum `HDFS = 2;`\n\n### SPARK\n\n Value: 3\n\nSpark metric source.\n\nGenerated from protobuf enum `SPARK = 3;`\n\n### YARN\n\n Value: 4\n\nYARN metric source.\n\nGenerated from protobuf enum `YARN = 4;`\n\n### SPARK_HISTORY_SERVER\n\n Value: 5\n\nSpark History Server metric source.\n\nGenerated from protobuf enum `SPARK_HISTORY_SERVER = 5;`\n\n### HIVESERVER2\n\n Value: 6\n\nHiveserver2 metric source.\n\nGenerated from protobuf enum `HIVESERVER2 = 6;`\n\n### HIVEMETASTORE\n\n Value: 7\n\nhivemetastore metric source\n\nGenerated from protobuf enum `HIVEMETASTORE = 7;`"]]