Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable Stackdriver Kubernetes Engine Monitoring with Terraform

I want to enable Kubernetes Engine Monitoring on clusters but I don't see that as a field in Terraform's google_container_cluster resource.

Is Kubernetes Engine Monitoring managed with another resource?

like image 745
red888 Avatar asked Jun 05 '19 04:06

red888


1 Answers

You can use the newer Kubernetes Monitoring Service by setting monitoring_service to monitoring.googleapis.com/kubernetes instead of the default monitoring.googleapis.com.

When enabling this you will also need to set logging_service to logging.googleapis.com/kubernetes as well.

like image 117
ydaetskcoR Avatar answered Oct 08 '22 18:10

ydaetskcoR