Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metastore_service - add telemetry_config #6993

Merged
merged 5 commits into from
Jan 10, 2023
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
13 changes: 13 additions & 0 deletions mmv1/products/metastore/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,19 @@ objects:
required: true
description: |
Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
- !ruby/object:Api::Type::NestedObject
name: "telemetryConfig"
description: |
The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
properties:
- !ruby/object:Api::Type::Enum
name: "logFormat"
default_value: :JSON
description: |
The output format of the Dataproc Metastore service's logs.
values:
- :LEGACY
- :JSON
- !ruby/object:Api::Resource
name: 'Federation'
min_version: beta
Expand Down
8 changes: 8 additions & 0 deletions mmv1/products/metastore/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ overrides: !ruby/object:Overrides::ResourceOverrides
metastore_service_name: "metastore-srv"
network_name: "my-network"
subnet_name: "my-subnetwork"
- !ruby/object:Provider::Terraform::Examples
name: "dataproc_metastore_service_telemetry"
skip_docs: true
primary_resource_id: "telemetry"
vars:
metastore_service_name: "telemetry"
properties:
network: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
Expand All @@ -78,6 +84,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides
hiveMetastoreConfig.configOverrides: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
diff_suppress_func: "dataprocMetastoreServiceOverrideSuppress"
telemetryConfig: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
Federation: !ruby/object:Overrides::Terraform::ResourceOverride
autogen_async: true
import_format: ["projects/{{project}}/locations/{{location}}/federations/{{federation_id}}"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "google_dataproc_metastore_service" "<%= ctx[:primary_resource_id] %>" {
service_id = "<%= ctx[:vars]['metastore_service_name'] %>"
location = "us-central1"
port = 9080
tier = "DEVELOPER"

hive_metastore_config {
version = "3.1.2"
}

telemetry_config {
log_format = "LEGACY"
}
}