fix(monitoring): смотреть рестарты контейнеров по метке Compose
ansible-core-mon / deploy (push) Successful in 16s
ansible-core-mon / deploy (push) Successful in 16s
У cAdvisor нет метки container, из-за неё правило не видело ни одного ряда. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
296c54f840
commit
c2e5a4a6bd
1 file changed
+1
-1
@@ -152,7 +152,7 @@ groups:
|
||||
|
||||
- alert: ContainerRestarting
|
||||
expr: |
|
||||
changes(container_start_time_seconds{container_label_com_docker_compose_service!="",container!=""}[15m]) > 2
|
||||
changes(container_start_time_seconds{container_label_com_docker_compose_service!=""}[15m]) > 2
|
||||
for: 2m
|
||||
labels:
|
||||
severity: warning
|
||||
|
||||
Reference in new issue
Block a user