Загрузка данных


- name: nexus-alerts
  rules:
  - alert: CriticalNexusOrientDBFillingUP
    annotations:
      description: The PersistentVolume claimed by {{`{{ $labels.persistentvolumeclaim }}`}} in Namespace {{`{{ $labels.namespace }}`}} is only {{`{{ $value | humanizePercentage }}`}} free.
      runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumefillingup
      summary: PersistentVolume is filling up.
    expr: |-
      kubelet_volume_stats_available_bytes{job="kubelet", namespace=~".*", metrics_path="/metrics", persistentvolumeclaim="nexus-nexus3-data"}
        /
      kubelet_volume_stats_capacity_bytes{job="kubelet", namespace=~".*", metrics_path="/metrics", persistentvolumeclaim="nexus-nexus3-data"}
        < 0.03
    for: 1m
    labels:
      severity: critical
  - alert: WarningNexusOrientDBFillingUP
    annotations:
      description: Based on recent sampling, the PersistentVolume claimed by {{`{{ $labels.persistentvolumeclaim }}`}} in Namespace {{`{{ $labels.namespace }}`}} is expected to fill up within four days. Currently {{`{{ $value | humanizePercentage }}`}} is available.
      runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumefillingup
      summary: PersistentVolume is filling up.
    expr: |-
        kubelet_volume_stats_available_bytes{job="kubelet", namespace=~".*", metrics_path="/metrics", persistentvolumeclaim="nexus-nexus3-data"} /1024/1024/1024 < 6
    for: 1h
    labels:
      severity: warning
  - alert: CriticalNexusOrientDBFillingErrors
    annotations:
      description: The persistent volume {{`{{ $labels.persistentvolume }}`}} has status {{`{{ $labels.phase }}`}}.
      runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumeerrors
      summary: PersistentVolume is having issues with provisioning.
    expr: kube_persistentvolume_status_phase{phase=~"Failed|Pending",job="kube-state-metrics", persistentvolumeclaim="nexus-nexus3-data"} > 0
    for: 5m
    labels:
      severity: critical
  - alert: NexusTaskNotOK
    annotations:
      description: Task with name {{`{{ $labels.name }}`}} was completed with is NOT OK status.
      summary: Check Nexus UI (System -> Tasks) and logs for investigating.
    expr: nexus_tasks_status{lastRunResult!~"OK|<nil>"} > 0
    for: 1m
    labels:
      severity: critical