feat: forgejo alerts
This commit is contained in:
parent
f5a0bc582d
commit
646bbde71c
2 changed files with 7 additions and 6 deletions
|
|
@ -118,10 +118,10 @@
|
|||
description="homeassistant notification {{$labels.entity}} ({{$labels.friendly_name}}): {{$value}}"
|
||||
}
|
||||
|
||||
ALERT gitea
|
||||
IF rate(promhttp_metric_handler_requests_total{job="gitea", code="500"}[5m]) > 3
|
||||
ALERT forgejo
|
||||
IF rate(promhttp_metric_handler_requests_total{job="forgejo", code="500"}[5m]) > 3
|
||||
ANNOTATIONS {
|
||||
description="{{$labels.instance}}: gitea instances error rate went up: {{$value}} errors in 5 minutes"
|
||||
description="{{$labels.instance}}: forgejo instances error rate went up: {{$value}} errors in 5 minutes"
|
||||
}
|
||||
''
|
||||
];
|
||||
|
|
@ -198,7 +198,7 @@
|
|||
];
|
||||
}
|
||||
{
|
||||
job_name = "gitea";
|
||||
job_name = "forgejo";
|
||||
scrape_interval = "60s";
|
||||
metrics_path = "/metrics";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue