Skip to content

Commit

Permalink
Allow all semaphore kube clients 2xx response codes to avoid spam alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
ffilippopoulos committed Jan 23, 2025
1 parent 68ce4c7 commit 398b44d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/all.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ groups:

If requeued items are not being processed promptly then this indicates a persistent issue. The mirror services are likely to be in an incorrect state.
- alert: SemaphoreServiceMirrorKubeClientErrors
expr: 'sum(rate(semaphore_service_mirror_kube_http_request_total{code!="200"}[10m])) / sum(rate(semaphore_service_mirror_kube_http_request_total[10m])) > 0.1'
expr: 'sum(rate(semaphore_service_mirror_kube_http_request_total{code!~"2.."}[10m])) / sum(rate(semaphore_service_mirror_kube_http_request_total[10m])) > 0.1'
for: 5m
labels:
team: infra
Expand All @@ -530,13 +530,13 @@ groups:

If requeued items are not being processed promptly then this indicates a persistent issue. The xDS configuration served to clients is likely to be in an incorrect state.
- alert: SemaphoreXDSKubeClientErrors
expr: 'increase(semaphore_xds_kube_http_request_total{code!="200"}[5m]) > 0'
expr: 'increase(semaphore_xds_kube_http_request_total{code!~"2.."}[5m]) > 0'
for: 10m
labels:
team: infra
annotations:
summary: "{{ $labels.app }} kubernetes client reports errors speaking to apiserver at {{ $labels.host }} for more than 10 minutes"
description: "Kubernetes client requests returning code different than 200 for longer than 10 minutes. Check the pods logs for further information."
description: "Kubernetes client requests returning code different than 2xx for longer than 10 minutes. Check the pods logs for further information."
logs: '<https://grafana.$ENVIRONMENT.aws.uw.systems/explore?left=["now-1h","now","Loki",{"expr":"{kubernetes_cluster=\"{{$labels.kubernetes_cluster}}\",kubernetes_namespace=\"{{$labels.namespace}}\",container=\"{{$labels.container}}\"}"}]|link>'
- alert: SemaphoreXDSNoZoneEndpoint
expr: 'sum(semaphore_xds_snapshot_endpoint{locality_zone="none"}) > 0'
Expand Down

0 comments on commit 398b44d

Please sign in to comment.