1
0
Fork 0
mirror of https://github.com/monitoring-mixins/website.git synced 2024-12-14 11:37:31 +00:00
monitoring-mixins-website/assets/harbor/alerts.yaml
Vitaly Zhuravlev b3b400137a Add jsonnet-libs mixins
Add blackbox exporter
Add mysql exporter
2024-05-04 12:01:41 +00:00

32 lines
1.1 KiB
YAML

groups:
- name: Harbor
rules:
- alert: HarborComponentStatus
annotations:
description: Harbor {{ $labels.component }} has been down for more than 5 minutes
summary: Harbor Component is Down.
expr: |
harbor_up == 0
for: 5m
labels:
severity: critical
- alert: HarborProjectQuataExceeded
annotations:
description: Harbor project {{ $labels.project_name }} has exceeded the configured
disk usage quota for the past 15 minutes
summary: Harbor project exceeds disk usage quota.
expr: |
harbor_project_quota_usage_byte > harbor_project_quota_byte and on(harbor_project_quota_usage_byte) harbor_project_quota_byte != -1
for: 15m
labels:
severity: warning
- alert: HarborHighErrorRate
annotations:
description: HTTP Requests of {{ $labels.instance }} are having a high Error
rate
summary: Harbor high error rate.
expr: sum(rate(harbor_core_http_request_total{code=~"4..|5.."}[5m]))/sum(rate(harbor_core_http_request_total[5m]))
> 0.15
for: 5m
labels:
severity: warning