hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

Add support for Dataplane V2 observability metrics #15276

Open jawnsy opened 1 year ago

jawnsy commented 1 year ago

Community Note

Description

DataplaneV2 now exposes metrics: https://cloud.google.com/kubernetes-engine/docs/how-to/configure-dpv2-observability#enable-metrics-on-cluster

From the output of gcloud container clusters describe, it is part of the cluster's monitoringConfig:

monitoringConfig:
  advancedDatapathObservabilityConfig:
    enableMetrics: true
    relayMode: DISABLED

New or Affected Resource(s)

https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/container_cluster#nested_monitoring_config

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.

References

toVersus commented 1 year ago

I think this FR is already implemented by https://github.com/GoogleCloudPlatform/magic-modules/pull/8516 and has landed in terraform-provider-google v4.78.0.