# Region-specific PrometheusRule groups for prod aws us-east-1.
# Fill extraRuleGroups with PrometheusRule spec.groups entries.
extraRuleGroups:
  - name: vmcluster-us-east-1-rules
    rules:
      - alert: VMclusterVminsertVmstorageConnectionIsSaturatedEAST1
        expr: rate(vm_rpc_send_duration_seconds_total[2m]) > 0.9
        for: 3m
        labels:
          severity: critical
        annotations:
          message: "Connection between vminsert on {{ $labels.instance }} and vmstorage on {{ $labels.addr }} is saturated"
          description: |-
            The connection between vminsert (instance {{ $labels.instance }}) and vmstorage (instance {{ $labels.addr }})
            is saturated by more than 90% and vminsert won't be able to keep up.\n
            This usually means that more vminsert or vmstorage nodes must be added to the cluster in order to increase
            the total number of vminsert -> vmstorage links.
            For scaling guides, please Refer to the dashboard https://self-monitoring-grafana.observability.tidbcloud.com/d/0Wz_just1900/victoriametrics-capacity-planning?orgId=1&viewPanel=149&var-ds=Prometheus-regional-{{ $externalLabels.o11y_k8s_id | reReplaceAll ".*regional-(.+)" "$1" }}
