groups: - name: EKS-Contour-TG-Alerts rules: - alert: Unhealthy-Host-in-EKSContourTG expr: aws_applicationelb_un_healthy_host_count_maximum{job="aws_applicationelb", target_group =~ ".*cntr.*|.*contour.*"} offset 10m >= 1 for: 5m labels: severity: critical bu: infra team: devops service: eks-contour env: prd priority: p0 resource: AWS Target Group annotations: summary: "Unhealthy Host in EKS Contour TG {{ $labels.target_group }} is greater than 1" description: "Unhealthy Host in EKS Contour TG {{ $labels.target_group }} is :{{ $value }}\n LABELS = {{ $labels }}" - alert: Healthy-Host-in-EKSContourTG-is-VeryLess expr: aws_applicationelb_healthy_host_count_average{job="aws_applicationelb", target_group =~ ".*cntr.*|.*contour.*"} offset 10m < 3 for: 1m labels: severity: critical bu: infra team: devops service: eks-contour env: prd priority: p0 resource: AWS Target Group annotations: summary: "Healthy Host in EKS Contour TG {{ $labels.target_group }} is less than 3" description: "Healthy Host in EKS Contour TG {{ $labels.target_group }} is less than 3, Value - {{ $value }}\n LABELS = {{ $labels }}"