Skip to content

Commit

Permalink
Update UsingDeprecatedAPIExtensionsV1Beta1 alert
Browse files Browse the repository at this point in the history
  • Loading branch information
soltysh committed Jan 28, 2020
1 parent d9ad957 commit 913c80b
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,16 @@ 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 will 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

0 comments on commit 913c80b

Please sign in to comment.