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

feat: Support RDS Cluster monitoring interval and role arn #485

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

magreenbaum
Copy link
Member

Description

Support enhanced monitoring at the cluster level.

Motivation and Context

Closes: #483

Breaking Changes

No.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes

variables.tf Outdated Show resolved Hide resolved
variable "cluster_monitoring_interval" {
description = "Interval, in seconds, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60"
type = number
default = 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default = 0
default = null

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is similar to what we're doing for var.monitoring_interval:

variable "monitoring_interval" {
description = "The interval, in seconds, between points when Enhanced Monitoring metrics are collected for instances. Set to `0` to disable. Default is `0`"
type = number
default = 0
}

That way we can use var.cluster_monitoring_interval > 0 in places to determine if we should configure a monitoring role since it must be greater than 0 in that case. Or should we let var.create_monitoring_role handle that on its own? Let me know what you think.

magreenbaum and others added 2 commits February 18, 2025 19:35
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.

Support for enhanced monitoring at the cluster level
2 participants