Skip to content

Commit 282e04e

Browse files
authored
Merge pull request #4 from sparkfabrik/feat/increase_default_alert_thresholds
refs #000: increase default alerts thresholds
2 parents e0a07ca + b89e9f5 commit 282e04e

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

CHANGELOG.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,27 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unreleased]
1010

11+
## [0.2.0] - 2024-10-17
12+
13+
[Compare with previous version](https://github.com/sparkfabrik/terraform-google-services-monitoring/compare/0.1.1...0.2.0)
14+
15+
### Changed
16+
17+
- Increase default alert thresholds for Cloud SQL CPU, memory and disk utilization.
1118

1219
## [0.1.1] - 2024-06-25
1320

21+
[Compare with previous version](https://github.com/sparkfabrik/terraform-google-services-monitoring/compare/0.1.0...0.1.1)
22+
1423
### Fixed
1524

16-
- Fixed Google provider minimum required version.
25+
- Fixed Google provider minimum required version.
1726

1827
## [0.1.0] - 2024-06-19
1928

2029
### Added
2130

22-
- Add support for Cloud SQL monitoring:
23-
- CPU utilization
24-
- Memory utilization
25-
- Disk utilization
31+
- Add support for Cloud SQL monitoring:
32+
- CPU utilization
33+
- Memory utilization
34+
- Disk utilization

variables.tf

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ variable "cloud_sql" {
2020
notification_channels = optional(list(string), [])
2121
instances = optional(map(object({
2222
cpu_utilization = optional(list(object({
23-
severity = optional(string, "CRITICAL"),
23+
severity = optional(string, "WARNING"),
2424
threshold = optional(number, 0.90)
2525
alignment_period = optional(string, "120s")
2626
duration = optional(string, "300s")
2727
})), [
2828
{
29-
severity = "WARNING",
3029
threshold = 0.85,
3130
duration = "1200s",
3231
},
@@ -38,29 +37,27 @@ variable "cloud_sql" {
3837
}
3938
])
4039
memory_utilization = optional(list(object({
41-
severity = optional(string, "CRITICAL"),
40+
severity = optional(string, "WARNING"),
4241
threshold = optional(number, 0.90)
4342
alignment_period = optional(string, "300s")
4443
duration = optional(string, "300s")
4544
})), [
4645
{
4746
severity = "WARNING",
48-
threshold = 0.80,
4947
},
5048
{
5149
severity = "CRITICAL",
52-
threshold = 0.90,
50+
threshold = 0.95,
5351
}
5452
])
5553
disk_utilization = optional(list(object({
56-
severity = optional(string, "CRITICAL"),
57-
threshold = optional(number, 0.90)
54+
severity = optional(string, "WARNING"),
55+
threshold = optional(number, 0.85)
5856
alignment_period = optional(string, "300s")
5957
duration = optional(string, "600s")
6058
})), [
6159
{
6260
severity = "WARNING",
63-
threshold = 0.85,
6461
},
6562
{
6663
severity = "CRITICAL",

0 commit comments

Comments
 (0)