Skip to content

Commit

Permalink
Add missing crsync deployment alerts (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
uvegla authored Apr 30, 2024
1 parent 6fd1fcb commit ba99db2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Changed DeploymentNotSatisfiedBigMac alert to work for teleport related deployments only on CAPI flavored clusters
### Added

- Added alerts for absent `crsync` deployments.

### Changed

- Update LokiRingUnhealthy query to avoid false positive when a new pod is starting.
- Changed DeploymentNotSatisfiedBigMac alert to work for teleport related deployments only on CAPI flavored clusters

## [3.12.2] - 2024-04-25

Expand Down
30 changes: 30 additions & 0 deletions helm/prometheus-rules/templates/alerting-rules/crsync.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,36 @@ spec:
groups:
- name: crsync
rules:
- alert: CrsyncDockerIoIsMissing
annotations:
description: 'CrSync deployment for docker.io is absent'
opsrecipe: crsync-deployments-missing/
expr: absent(kube_deployment_status_replicas_available{namespace="crsync", deployment="crsync-docker-io"})
for: 10m
labels:
area: kaas
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_status_updating: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: honeybadger
topic: releng
- alert: CrsyncGiantswarmAzureCrIoIsMissing
annotations:
description: 'CrSync deployment for giantswarm.azurecr.io is absent'
opsrecipe: crsync-deployments-missing/
expr: absent(kube_deployment_status_replicas_available{namespace="crsync", deployment="crsync-giantswarm-azurecr-io"})
for: 10m
labels:
area: kaas
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_status_updating: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: honeybadger
topic: releng
- alert: CrsyncDeploymentNotSatisfied
annotations:
description: '{{`CrSync deployment {{ $labels.deployment }} is not satisfied in {{ $labels.installation }} / {{ $labels.cluster_id }} at the {{ $labels.namespace }} namespace.`}}'
Expand Down

0 comments on commit ba99db2

Please sign in to comment.