Skip to content

Commit

Permalink
aaa: Enable GKE workloads metrics
Browse files Browse the repository at this point in the history
Related:
  - part of: kubernetes#1394

Enable GKE workloads metrics that give the capability to send metrics
for a GKE cluster to cloud monitoring.
See: https://cloud.google.com/stackdriver/docs/solutions/gke/managing-metrics#enable-workload-metrics

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
  • Loading branch information
ameukam committed Nov 5, 2021
1 parent 47bff83 commit 26f613e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ resource "google_container_cluster" "cluster" {
master_authorized_networks_config {
}

// Enable GKE workloads monitoring
monitoring_config {
enable_components = [
"SYSTEM_COMPONENTS",
"WORKLOADS"
]
}

// Enable GKE Usage Metering
resource_usage_export_config {
enable_network_egress_metering = true
Expand Down

0 comments on commit 26f613e

Please sign in to comment.