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

Feature: add WORKLOADS to monitoring_config.enable_components #10361

Open
hazcod opened this issue Oct 21, 2021 · 3 comments
Open

Feature: add WORKLOADS to monitoring_config.enable_components #10361

hazcod opened this issue Oct 21, 2021 · 3 comments

Comments

@hazcod
Copy link

hazcod commented Oct 21, 2021

Description

Currently it is not possible to enable GKE monitoring for workloads using hashicorp/google-beta 3.89.0:

  # use stackdriver GKE for system monitoring
  monitoring_service = "monitoring.googleapis.com/kubernetes"
  monitoring_config {
    enable_components = ["SYSTEM_COMPONENTS", "WORKLOADS"]
  }

Results in: monitoring_config must have one of [SYSTEM_COMPONENTS] while the GKE UI has Workloads as an option.

New or Affected Resource(s)

  • google_container_cluster

Comments

Can we also clarify the difference between logging_config and monitoring_config and how they tie in with service?
e.g. I get googleapi: Error 400: Cannot specify logging_config or monitoring_config together with logging_service or monitoring_service if I configure everything but can't find -any- documentation around it.

References

  • b/298514409
@rileykarson rileykarson added this to the Goals milestone Oct 25, 2021
@pbrissaud
Copy link

Real issue ! Can't disable monitoring and configure logging in same time (no really any sense)

  logging_config {
    enable_components = ["SYSTEM_COMPONENTS"]
  }
  monitoring_service = "none"
Error: googleapi: Error 400: Cannot specify logging_config or monitoring_config together with logging_service or monitoring_service., badRequest

@BitRacer
Copy link

BitRacer commented Jan 12, 2022

Verified. Can't enable WORKLOADS for monitoring config. Which blocks using HPA on custom metrics..

@Nicarim
Copy link

Nicarim commented Jan 19, 2022

Running into same issue, I'm using registry.terraform.io/terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster, version 18.0.0 module with

provider "registry.terraform.io/hashicorp/google-beta" {
  version     = "3.90.1"

provider.

Getting

googleapi: Error 400: Cannot specify logging_config or monitoring_config together with logging_service or monitoring_service., badRequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants