Skip to content

Commit

Permalink
fix metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mamari90 committed Nov 2, 2023
1 parent 261da02 commit d22589f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions postgres_flexible_server_replica/04_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ variable "replica_server_metric_alerts" {
frequency = "PT5M"
window_size = "PT30M"
metric_namespace = "Microsoft.DBforPostgreSQL/flexibleServers"
aggregation = "Total"
aggregation = "Average"
metric_name = "physical_replication_delay_in_seconds"
operator = "Average"
operator = "GreaterThanOrEqual"
threshold = 240
severity = 2
}
Expand Down Expand Up @@ -163,9 +163,9 @@ variable "main_server_additional_alerts" {
frequency = "PT5M"
window_size = "PT30M"
metric_namespace = "Microsoft.DBforPostgreSQL/flexibleServers"
aggregation = "Total"
aggregation = "Average"
metric_name = "physical_replication_delay_in_bytes"
operator = "Average"
operator = "GreaterThanOrEqual"
threshold = 240
severity = 2
}
Expand Down

0 comments on commit d22589f

Please sign in to comment.