I am using terraform to create autoscale settings for VMs. I am able to add rules for autoscale based on CPU percentage metric:
rule {
metric_trigger {
operator = "GreaterThan"
threshold = 50
time_grain = "PT1M"
statistic = "Average"
time_window = "PT5M"
metric_name = "Percentage CPU"
time_aggregation = "Average"
}
}
However, I am not able to find how to add rules based on memory percentage utilization. Has anyone done something similar like this? I am even not able to see whether this is supported by the provider: resource_arm_autoscale_setting