Skip to content

Commit

Permalink
DBP-000 Correct parameters for updated GHA, improved alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncolincap committed Feb 8, 2024
1 parent 6c895c4 commit 990dd8d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-image-and-helm-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
image_name: "infra-autoscaler"
run_trivy_scan: true
tag_generation: "version_git_tag"
image_tag_generation: "version_git_tag"
add_latest_tag: true
container_registry: "ghcr.io"
publish_helm:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-image-on-push-to-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
with:
image_name: "infra-autoscaler"
run_trivy_scan: true
tag_generation: "ticket_from_branch"
image_tag_generation: "ticket_from_branch"
add_latest_tag: false
container_registry: "ghcr.io"
12 changes: 10 additions & 2 deletions charts/infra-autoscaler/files/alertrules.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
- alert: AutoscalerHighComponentErrorRate
expr: rate(autoscaler_component_errors_total[5m]) / (autoscaler_cycle_time_seconds * autoscaler_instances{ready="true"}) * 100 > 10
for: 10m
expr: rate(autoscaler_component_errors_total[5m]) * on(instance) group_left autoscaler_cycle_time_seconds / on(instance) group_left autoscaler_instances_count{ready="true"} * 100 > 10
for: 5m
labels:
severity: error
annotations:
summary: "High error rate for autoscaler {{ $labels.component }}"
description: "Autoscaler {{ $labels.component }} component ({{ $labels.component_type }}) has errors for {{ $value }}% of instances"
- alert: AutoscalerNoReadyInstances
expr: autoscaler_instances_count{ready="true"} == 0
for: 5m
labels:
severity: error
annotations:
summary: "Autoscaler has no ready instances"
description: ""
- alert: AutoscalerSlowCycleRate
expr: rate(autoscaler_cycle_count[5m]) * autoscaler_cycle_time_seconds * 100 < 50
for: 10m
Expand Down

0 comments on commit 990dd8d

Please sign in to comment.