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

Allow enabling managed Prometheus in beta cluster submodules #1307

Merged

Conversation

jroiseux
Copy link
Contributor

@jroiseux jroiseux commented Jun 24, 2022

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-existing monitoring_config block.

The monitoring_config block previously only accepted the monitoring_enabled_components input, which is now set to null if it is not specified, in order to prevent SYSTEM_COMPONENTS from being disabled when monitoring_enable_managed_prometheus is set to true.

Fixes PR #1298

Resolves #1290 and #1167

@jroiseux jroiseux requested review from a team, Jberlinsky and bharathkkb as code owners June 24, 2022 17:14
@google-cla
Copy link

google-cla bot commented Jun 24, 2022

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.

@comment-bot-dev
Copy link

@jroiseux
Thanks for the PR! 🚀
✅ Lint checks have passed.

Comment on lines +97 to +103
dynamic "managed_prometheus" {
for_each = var.monitoring_enable_managed_prometheus ? [1] : []

content {
enabled = var.monitoring_enable_managed_prometheus
}
}
Copy link
Contributor

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).

Copy link
Member

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?

Copy link
Member

@bharathkkb bharathkkb left a 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

@cpanato
Copy link

cpanato commented Jul 8, 2022

any plans to release this feature?

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

Successfully merging this pull request may close these issues.

missing enable-managed-prometheus for GKE cluster
5 participants