feat: forgejo alerts
This commit is contained in:
parent
f5a0bc582d
commit
646bbde71c
2 changed files with 7 additions and 6 deletions
|
|
@ -7,8 +7,9 @@ let
|
|||
{ name = "Postfix"; service = "postfix.service"; instance = "mail:9100"; }
|
||||
{ name = "Dovecot"; service = "dovecot.service"; instance = "mail:9100"; }
|
||||
{ name = "OpenLDAP"; service = "openldap.service"; instance = "mail:9100"; }
|
||||
{ name = "Gitea"; service = "container@git.service"; instance = "fw:9100"; }
|
||||
{ name = "Gitea Runner"; service = "microvm@git-runner-1.service"; instance = "fw:9100"; }
|
||||
{ name = "Forgejo"; service = "container@forgejo.service"; instance = "fw:9100"; }
|
||||
{ name = "Forgejo Runner 1"; service = "microvm@fj-runner-1.service"; instance = "fw:9100"; }
|
||||
{ name = "Forgejo Runner 2"; service = "microvm@fj-runner-2.service"; instance = "fw:9100"; }
|
||||
{ name = "WireGuard"; service = "wireguard-wg_cloonar.service"; instance = "fw:9100"; }
|
||||
{ name = "MySQL"; service = "mysql.service"; instance = "amzebs-01:9100"; }
|
||||
{ name = "Nginx"; service = "nginx.service"; instance = "amzebs-01:9100"; }
|
||||
|
|
|
|||
|
|
@ -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