mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
service/gitea: add alert
This commit is contained in:
parent
fc5dcb84a1
commit
bf1d6d44db
1 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,13 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
my.services.prometheus.rules = {
|
||||||
|
gitea = {
|
||||||
|
condition = ''rate(promhttp_metric_handler_requests_total{job="gitea", code="500"}[5m]) > 3'';
|
||||||
|
description = "{{$labels.instance}}: gitea instances error rate went up: {{$value}} errors in 5 minutes";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
webapps.apps.gitea = {
|
webapps.apps.gitea = {
|
||||||
dashboard = {
|
dashboard = {
|
||||||
name = "Code";
|
name = "Code";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue