resource "aws_prometheus_rule_group_namespace" "recording_rules" { count = var.enable_recording_rules ? 1 : 0 name = "accelerator-java-rules" workspace_id = var.managed_prometheus_workspace_id data = < 80 for: 1m labels: severity: warning annotations: summary: "JVM heap warning" description: "JVM heap of instance `{{$labels.instance}}` from application `{{$labels.application}}` is above 80% for one minute. (current=`{{$value}}%`)" EOF } resource "grafana_dashboard" "this" { count = var.enable_dashboards ? 1 : 0 folder = var.dashboards_folder_id config_json = file("${path.module}/dashboards/default.json") }