Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: add support for Dataproc metric configuration #626

Merged
merged 5 commits into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions protos/google/cloud/dataproc/v1/clusters.proto
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ message ClusterConfig {

// Optional. Metastore configuration.
MetastoreConfig metastore_config = 20 [(google.api.field_behavior) = OPTIONAL];

// Optional. Dataproc metrics configuration.
DataprocMetricConfig dataproc_metric_config = 21 [(google.api.field_behavior) = OPTIONAL];
}

// Dataproc cluster config for a cluster that does not directly control the
Expand Down Expand Up @@ -942,6 +945,49 @@ message MetastoreConfig {
];
}


// Specifies Dataproc OSS Metric.
message Metric {
enum MetricSource {
// Unspecified metric source
METRIC_SOURCE_UNSPECIFIED = 0;

// Default monitoring agent metrics. If this source is enabled,
// Dataproc enables the monitoring agent in Compute Engine, and collects
// default monitoring agent metrics, which are published with an
// agent.googleapis.com prefix.
MONITORING_AGENT_DEFAULTS = 1;

// HDFS metric source
HDFS = 2;

// SPARK metric source
SPARK = 3;

// YARN metric source
YARN = 4;

// Spark History Server metric source
SPARK_HISTORY_SERVER = 5;

// Hiveserver2 metric source
HIVESERVER2 = 6;
}

// Required. Specified source of metric collection
MetricSource metric_source = 1 [(google.api.field_behavior) = REQUIRED];

// Optional. The set of available OSS metrics to collect from the metric
// source.
repeated string metric_overrides = 2 [(google.api.field_behavior) = OPTIONAL];
}

// Specifies a Dataproc metric config
message DataprocMetricConfig {
// Configuration set of metrics to collect from the cluster
repeated Metric metrics = 1 [(google.api.field_behavior) = REQUIRED];
}

// Contains cluster daemon metrics, such as HDFS and YARN stats.
//
// **Beta Feature**: This report is available for testing purposes only. It may
Expand Down
220 changes: 220 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading