terraform-google-kubernetes-engine icon indicating copy to clipboard operation
terraform-google-kubernetes-engine copied to clipboard

Enable managed prometheus disables cloud monitoring in v28

Open szihai opened this issue 2 years ago • 7 comments

TL;DR

Shouldn't that be left as default value "System"?

Expected behavior

Shouldn't that be left as default value "System"?

Observed behavior

In v27, when managed prometheus is enabled, the cloud monitoring value was left as default: image Now in v28, the cloud monitoring is disabled: image Our configuration did not change. Also when checking with GCP documentation, the default value should still be "System". image

Please fix this issue.

Terraform Configuration

module "gke" {
  source  = "terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster"
  version = "~> 28.0.0"

  ...

  #managed prometheus
  monitoring_enable_managed_prometheus = var.monitoring_enable_managed_prometheus
  ...
}

variable "monitoring_enable_managed_prometheus" {
  type        = bool
  description = "Configuration for Managed Service for Prometheus. Whether or not the managed collection is enabled."
  default     = true
}

Terraform Version

Terraform v1.6.1
on linux_amd64

Additional information

No response

szihai avatar Oct 27 '23 17:10 szihai

I tested on the commit 2beb7207. Disregard the setting of "monitoring_enable_managed_prometheus", Terraform plan only wants to disable cloud monitoring: image Which means the release candidate for v29.0.0 has not fixed this issue.

szihai avatar Oct 30 '23 22:10 szihai

I just tried with v29.0.0, the problem is still there. It disables cloud monitoring when enables prometheus.

szihai avatar Nov 02 '23 23:11 szihai

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jan 02 '24 23:01 github-actions[bot]

This issue is still a problem (together with most other GMP issues).

m3adow avatar Jan 05 '24 14:01 m3adow

Still an issue!

bergemalm avatar Jan 19 '24 12:01 bergemalm

It's not really an issue. The fix is pretty simple: define monitoring_enabled_components variable.

Source: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/1706#issuecomment-1810686466

m0ps avatar Jan 23 '24 06:01 m0ps

It's not really an issue. The fix is pretty simple: define monitoring_enabled_components variable.

Source: #1706 (comment)

Sadly that's not an option for some cluster variants, as they don't (yet?) support monitoring_enabled_components: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/1793

m3adow avatar Mar 19 '24 12:03 m3adow

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 18 '24 23:05 github-actions[bot]