Skip to content

Commit

Permalink
fix: 🐛 Adapt PVCs alerting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
cmon33 authored and this-is-tobi committed Jul 30, 2024
1 parent e0653fb commit 9850f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/gitlab/templates/prometheusrule.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ spec:
expr: |
round(
kubelet_volume_stats_available_bytes{
persistentvolumeclaim=~".*-gitlab-.*",
persistentvolumeclaim=~"(.*-)*gitlab(-.*)*",
namespace="{{ dsc.gitlab.namespace }}"}
/ kubelet_volume_stats_capacity_bytes{
persistentvolumeclaim=~".*-gitlab-.*",
persistentvolumeclaim=~"(.*-)*gitlab(-.*)*",
namespace="{{ dsc.gitlab.namespace }}"} * 100, 0.01) < 10 > 0
for: 1m
labels:
Expand All @@ -198,7 +198,7 @@ spec:
summary: GitLab PVC out of disk space in namespace {{ dsc.gitlab.namespace }}
expr: |
kubelet_volume_stats_available_bytes{
persistentvolumeclaim=~".*-gitlab-.*",
persistentvolumeclaim=~"(.*-)*gitlab(-.*)*",
namespace="{{ dsc.gitlab.namespace }}"} == 0
for: 1m
labels:
Expand Down

0 comments on commit 9850f6a

Please sign in to comment.