Skip to content

Commit

Permalink
Update UsingDeprecatedAPIExtensionsV1Beta1 alert
Browse files Browse the repository at this point in the history
  • Loading branch information
soltysh committed Feb 10, 2020
1 parent dcfcba9 commit f5b7259
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,20 @@ spec:
rules:
- alert: UsingDeprecatedAPIExtensionsV1Beta1
annotations:
message: A client in the cluster is using deprecated extensions/v1beta1 API that will be removed soon.
summary: |
A client is using a deprecated {{"{{"}} $labels.group {{"}}"}}/{{"{{"}} $labels.version {{"}}"}} API version
message: |
A client in the cluster has used a deprecated {{"{{"}} $labels.group {{"}}"}}/{{"{{"}} $labels.version {{"}}"}} API version of the {{"{{"}} $labels.resource {{"}}"}} resource in the last 24 hours.
This API version may be removed soon; please migrate to the current version of this API.
expr: |
apiserver_request_count{group="extensions",version="v1beta1",resource!~"ingresses|",client!~"hyperkube/.*|cluster-policy-controller/.*"}
increase(
apiserver_request_total{
group="extensions",
version="v1beta1",
}[24h]
) > 0
labels:
severity: warning
severity: info
- name: apiserver-requests-in-flight
rules:
# We want to capture requests in-flight metrics for kube-apiserver and openshift-apiserver.
Expand Down

0 comments on commit f5b7259

Please sign in to comment.