Skip to content

Commit

Permalink
teleport alerts cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ssyno committed May 7, 2024
1 parent 07bca56 commit ea404ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
24 changes: 6 additions & 18 deletions helm/prometheus-rules/templates/alerting-rules/teleport.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,11 @@ spec:
expr: |
count (
kube_secret_created{secret=~".*-teleport-join-token"}
) by (cluster_id, installation)
)
!=
sum (
label_replace(
capi_cluster_status_phase{phase="Provisioned"},
"cluster_id",
"$1",
"name",
"(.*)"
)
) by (cluster_id, installation)
capi_cluster_status_phase{phase="Provisioned"}
)
for: 120m
labels:
area: kaas
Expand All @@ -43,17 +37,11 @@ spec:
expr: |
count (
kube_configmap_info{configmap=~".*-teleport-kube-agent-config"}
) by (cluster_id, installation)
)
!=
sum (
label_replace(
capi_cluster_status_phase{phase="Provisioned"},
"cluster_id",
"$1",
"name",
"(.*)"
)
) by (cluster_id, installation)
capi_cluster_status_phase{phase="Provisioned"}
)
for: 120m
labels:
area: kaas
Expand Down
4 changes: 0 additions & 4 deletions test/tests/providers/capi/capz/teleport.rules.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ tests:
cancel_if_cluster_status_updating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_outside_working_hours: "true"
cluster_id: my-cluster
installation: golem
severity: notify
team: bigmac
topic: teleport
Expand Down Expand Up @@ -54,8 +52,6 @@ tests:
cancel_if_cluster_status_updating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_outside_working_hours: "true"
cluster_id: my-cluster
installation: grizzly
severity: notify
team: bigmac
topic: teleport
Expand Down

0 comments on commit ea404ad

Please sign in to comment.