47
47
"SoftwareConfig" ,
48
48
"LifecycleConfig" ,
49
49
"MetastoreConfig" ,
50
- "Metric" ,
51
50
"DataprocMetricConfig" ,
52
51
"ClusterMetrics" ,
53
52
"CreateClusterRequest" ,
@@ -237,7 +236,7 @@ class ClusterConfig(proto.Message):
237
236
metastore_config (google.cloud.dataproc_v1.types.MetastoreConfig):
238
237
Optional. Metastore configuration.
239
238
dataproc_metric_config (google.cloud.dataproc_v1.types.DataprocMetricConfig):
240
- Optional. Dataproc metrics configuration .
239
+ Optional. The config for Dataproc metrics.
241
240
"""
242
241
243
242
config_bucket = proto .Field (
@@ -310,7 +309,7 @@ class ClusterConfig(proto.Message):
310
309
)
311
310
dataproc_metric_config = proto .Field (
312
311
proto .MESSAGE ,
313
- number = 21 ,
312
+ number = 23 ,
314
313
message = "DataprocMetricConfig" ,
315
314
)
316
315
@@ -1340,20 +1339,19 @@ class MetastoreConfig(proto.Message):
1340
1339
)
1341
1340
1342
1341
1343
- class Metric (proto .Message ):
1344
- r"""Specifies Dataproc OSS Metric .
1342
+ class DataprocMetricConfig (proto .Message ):
1343
+ r"""Dataproc metric config .
1345
1344
1346
1345
Attributes:
1347
- metric_source (google.cloud.dataproc_v1.types.Metric.MetricSource):
1348
- Required. Specified source of metric
1349
- collection
1350
- metric_overrides (Sequence[str]):
1351
- Optional. The set of available OSS metrics to
1352
- collect from the metric source.
1346
+ metrics (Sequence[google.cloud.dataproc_v1.types.DataprocMetricConfig.Metric]):
1347
+ Required. Metrics sources to enable.
1353
1348
"""
1354
1349
1355
1350
class MetricSource (proto .Enum ):
1356
- r""""""
1351
+ r"""A source for the collection of Dataproc OSS metrics (see [available
1352
+ OSS metrics]
1353
+ (https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).
1354
+ """
1357
1355
METRIC_SOURCE_UNSPECIFIED = 0
1358
1356
MONITORING_AGENT_DEFAULTS = 1
1359
1357
HDFS = 2
@@ -1362,30 +1360,64 @@ class MetricSource(proto.Enum):
1362
1360
SPARK_HISTORY_SERVER = 5
1363
1361
HIVESERVER2 = 6
1364
1362
1365
- metric_source = proto .Field (
1366
- proto .ENUM ,
1367
- number = 1 ,
1368
- enum = MetricSource ,
1369
- )
1370
- metric_overrides = proto .RepeatedField (
1371
- proto .STRING ,
1372
- number = 2 ,
1373
- )
1374
-
1375
-
1376
- class DataprocMetricConfig (proto .Message ):
1377
- r"""Specifies a Dataproc metric config
1363
+ class Metric (proto .Message ):
1364
+ r"""A Dataproc OSS metric.
1365
+
1366
+ Attributes:
1367
+ metric_source (google.cloud.dataproc_v1.types.DataprocMetricConfig.MetricSource):
1368
+ Required. Default metrics are collected unless
1369
+ ``metricOverrides`` are specified for the metric source (see
1370
+ [Available OSS metrics]
1371
+ (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
1372
+ for more information).
1373
+ metric_overrides (Sequence[str]):
1374
+ Optional. Specify one or more [available OSS metrics]
1375
+ (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics)
1376
+ to collect for the metric course (for the ``SPARK`` metric
1377
+ source, any [Spark metric]
1378
+ (https://spark.apache.org/docs/latest/monitoring.html#metrics)
1379
+ can be specified).
1380
+
1381
+ Provide metrics in the following format:
1382
+ METRIC_SOURCE:INSTANCE:GROUP:METRIC Use camelcase as
1383
+ appropriate.
1384
+
1385
+ Examples:
1386
+
1387
+ ::
1388
+
1389
+ yarn:ResourceManager:QueueMetrics:AppsCompleted
1390
+ spark:driver:DAGScheduler:job.allJobs
1391
+ sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
1392
+ hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
1393
+
1394
+ Notes:
1395
+
1396
+ - Only the specified overridden metrics will be collected
1397
+ for the metric source. For example, if one or more
1398
+ ``spark:executive`` metrics are listed as metric
1399
+ overrides, other ``SPARK`` metrics will not be collected.
1400
+ The collection of the default metrics for other OSS
1401
+ metric sources is unaffected. For example, if both
1402
+ ``SPARK`` andd ``YARN`` metric sources are enabled, and
1403
+ overrides are provided for Spark metrics only, all
1404
+ default YARN metrics will be collected.
1405
+ """
1378
1406
1379
- Attributes:
1380
- metrics (Sequence[google.cloud.dataproc_v1.types.Metric]):
1381
- Configuration set of metrics to collect from
1382
- the cluster
1383
- """
1407
+ metric_source = proto .Field (
1408
+ proto .ENUM ,
1409
+ number = 1 ,
1410
+ enum = "DataprocMetricConfig.MetricSource" ,
1411
+ )
1412
+ metric_overrides = proto .RepeatedField (
1413
+ proto .STRING ,
1414
+ number = 2 ,
1415
+ )
1384
1416
1385
1417
metrics = proto .RepeatedField (
1386
1418
proto .MESSAGE ,
1387
1419
number = 1 ,
1388
- message = " Metric" ,
1420
+ message = Metric ,
1389
1421
)
1390
1422
1391
1423
0 commit comments