Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #95 from davidffrench/INTLY-2352
Browse files Browse the repository at this point in the history
Intly 2352
  • Loading branch information
david-martin authored Aug 23, 2019
2 parents a063264 + c149a7d commit 1e51216
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CONSUMER_NAMESPACES=${NAMESPACE}
PROJECT=keycloak-operator
REG=quay.io
SHELL=/bin/bash
TAG=v1.8.2
TAG=v1.8.3
PKG=github.com/integr8ly/keycloak-operator
TEST_DIRS?=$(shell sh -c "find $(TOP_SRC_DIRS) -name \\*_test.go -exec dirname {} \\; | sort | uniq")
TEST_POD_NAME=keycloak-operator-test
Expand Down
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: keycloak-operator
image: quay.io/integreatly/keycloak-operator:v1.8.2
image: quay.io/integreatly/keycloak-operator:v1.8.3
ports:
- containerPort: 60000
name: metrics
Expand Down
48 changes: 48 additions & 0 deletions deploy/template/prometheus-rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,51 @@ spec:
for: 5m
labels:
severity: warning
- alert: KeycloakInstanceNotAvailable
annotations:
message: >-
Keycloak instance in namespace {{ $labels.namespace }} has not
been available for the last 5 minutes.
expr: >
(1 - absent(kube_pod_status_ready{namespace="sso", condition="true"}
* on (pod) group_left (label_deploymentConfig)
kube_pod_labels{label_deploymentConfig="sso"})) == 0 or
probe_success{service="rhsso-ui"} == 0
for: 5m
labels:
severity: critical
- alert: KeycloakAPIRequestDuration90PercThresholdExceeded
annotations:
message: >-
Less than 90% of the RH SSO API endpoints in namespace {{ $labels.namespace }} are taking longer than 1s for the last 5 minutes.
expr: >
(sum(rate(keycloak_request_duration_bucket{le="1000.0"}[5m])) by (job)
/
sum(rate(keycloak_request_duration_count[5m])) by (job)) < 0.90
for: 5m
labels:
severity: critical
- alert: KeycloakAPIRequestDuration99PercThresholdExceeded
annotations:
message: >-
Less than 99.5% of the RH SSO API endpoints in namespace {{ $labels.namespace }} are taking longer than 10s for the last 5 minutes.
expr: >
(sum(rate(keycloak_request_duration_bucket{le="10000.0"}[5m])) by (job)
/
sum(rate(keycloak_request_duration_count[5m])) by (job)) < 0.995
for: 5m
labels:
severity: critical
- alert: KeycloakDatabaseNotAvailable
annotations:
message: >-
RH SSO database in namespace {{ $labels.namespace }} is not
available for the last 5 minutes.
expr: >
(1 - absent(kube_pod_status_ready{namespace="sso", condition="true"}
* on (pod) group_left (label_deploymentConfig)
kube_pod_labels{label_deploymentConfig="sso-postgresql"})) == 0
for: 5m
labels:
severity: critical

2 changes: 1 addition & 1 deletion deploy/test-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
restartPolicy: Never
containers:
- name: keycloak-operator-test
image: quay.io/integreatly/keycloak-operator:v1.8.2
image: quay.io/integreatly/keycloak-operator:v1.8.3
imagePullPolicy: Always
command: ["/go-test.sh"]
env:
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package version

var (
Version = "1.8.2"
Version = "1.8.3"
)

0 comments on commit 1e51216

Please sign in to comment.