Skip to content

Commit

Permalink
Split kong alerts (#1444)
Browse files Browse the repository at this point in the history
* Split kong alerts into prod / non-prod

* Add changelog entries
  • Loading branch information
ubergesundheit authored Nov 27, 2024
1 parent 97c68f6 commit 3f40cfa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- `KongProductionDeploymentNotSatisfied` to alert on clusters starting with `p`.

### Changed

- `KongDeploymentNotSatisfied` to alert on clusters not starting with `p` and not outside business hours.

## [4.26.2] - 2024-11-27

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,21 @@ spec:
annotations:
description: '{{`Kong Deployment {{ $labels.namespace}}/{{ $labels.deployment }} is not satisfied.`}}'
opsrecipe: workload-cluster-managed-deployment-not-satisfied/
expr: managed_app_deployment_status_replicas_available{managed_app=~"kong.*"} / (managed_app_deployment_status_replicas_available{managed_app=~"kong.*"} + managed_app_deployment_status_replicas_unavailable{managed_app=~"kong.*"}) < 0.6
expr: managed_app_deployment_status_replicas_available{managed_app=~"kong.*", cluster_id!~"p.*"} / (managed_app_deployment_status_replicas_available{managed_app=~"kong.*", cluster_id!~"p.*"} + managed_app_deployment_status_replicas_unavailable{managed_app=~"kong.*", cluster_id!~"p.*"}) < 0.6
for: 30m
labels:
area: platform
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: cabbage
topic: kong
- alert: KongProductionDeploymentNotSatisfied
annotations:
description: '{{`Kong Deployment {{ $labels.namespace}}/{{ $labels.deployment }} is not satisfied.`}}'
opsrecipe: workload-cluster-managed-deployment-not-satisfied/
expr: managed_app_deployment_status_replicas_available{managed_app=~"kong.*", cluster_id=~"p.*"} / (managed_app_deployment_status_replicas_available{managed_app=~"kong.*", cluster_id=~"p.*"} + managed_app_deployment_status_replicas_unavailable{managed_app=~"kong.*", cluster_id=~"p.*"}) < 0.6
for: 30m
labels:
area: platform
Expand Down

0 comments on commit 3f40cfa

Please sign in to comment.