Skip to content

Commit

Permalink
Add cluster_id label
Browse files Browse the repository at this point in the history
  • Loading branch information
fiunchinho committed Dec 9, 2024
1 parent b8a0998 commit ed13e1e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ spec:
- alert: KarpenterCanNotRegisterNewNodes
annotations:
description: |
Karpenter provisioner {{`{{ $labels.provisioner }}`}} launched new nodes, but some of nodes did not registered in the cluster
Karpenter provisioner {{`{{ $labels.provisioner }}`}} on cluster {{`{{ $labels.cluster_id }}`}} launched new nodes, but some of nodes did not registered in the cluster
opsrecipe: karpenter/
expr: sum by (provisioner) (karpenter_machines_launched) - sum by (provisioner)(karpenter_machines_registered) != 0
expr: sum by (provisioner, cluster_id, installation, pipeline, provider) (karpenter_machines_launched) - sum by (provisioner, cluster_id, installation, pipeline, provider)(karpenter_machines_registered) != 0
for: 1h
labels:
area: kaas
Expand All @@ -27,7 +27,7 @@ spec:
- alert: KarpenterProvisionerAlmostFull
annotations:
description: |
Provisioner {{`{{ $labels.provisioner }}`}} is almost full.
Provisioner {{`{{ $labels.provisioner }}`}} on cluster {{`{{ $labels.cluster_id }}`}} is almost full.
opsrecipe: karpenter/
expr: karpenter_provisioner_usage_pct > 90
for: 72h
Expand All @@ -41,7 +41,7 @@ spec:
- alert: KarpenterCloudproviderErrors
annotations:
description: |
Karpenter is getting errors during API calls to the cloud provider.
Karpenter on cluster {{`{{ $labels.cluster_id }}`}} is getting errors during API calls to the cloud provider.
opsrecipe: karpenter/
expr: rate(karpenter_cloudprovider_errors_total{}[5m]) > 0.1
for: 10m
Expand Down

0 comments on commit ed13e1e

Please sign in to comment.