mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-14 11:37:31 +00:00
b3b400137a
Add blackbox exporter Add mysql exporter
32 lines
1.1 KiB
YAML
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
|