-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow enabling managed Prometheus in beta cluster submodules #1307
Allow enabling managed Prometheus in beta cluster submodules #1307
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
@jroiseux |
dynamic "managed_prometheus" { | ||
for_each = var.monitoring_enable_managed_prometheus ? [1] : [] | ||
|
||
content { | ||
enabled = var.monitoring_enable_managed_prometheus | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also enable managed_prometheus
if autopilot_cluster
is true
(but Autopilot cannot enable enable_components
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ykzts Can you open an issue so we can track this for autopilot support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @jroiseux
any plans to release this feature? |
…erraform-google-modules#1307) * add ability to enable managed prometheus in beta cluster * check if enable managed prometheus is set * set enabled_components to null if not specified Co-authored-by: Bharath KKB <[email protected]>
Managed Prometheus can now be enabled with the release of the beta provider,
4.25.0
.Adds an input,
monitoring_enable_managed_prometheus
, to beta cluster submodules using a nested dynamic block in the pre-existingmonitoring_config
block.The
monitoring_config
block previously only accepted themonitoring_enabled_components
input, which is now set to null if it is not specified, in order to preventSYSTEM_COMPONENTS
from being disabled whenmonitoring_enable_managed_prometheus
is set to true.Fixes PR #1298
Resolves #1290 and #1167