Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
fix(Prometheus Rules) : Remove MobileSecurityServicePodCount since it…
Browse files Browse the repository at this point in the history
… was considered duplicated (AEROGEAR-9642)
  • Loading branch information
camilamacedo86 committed Jul 30, 2019
1 parent 5eb282a commit 6cf52ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions SOP/SOP-operator.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ IMPORTANT: If the operator pod is not preset check its installation. See https:/
+
TIP: May will be required re-install the project or just the link:./deploy/operator.yaml[operator.yaml] file if all kinds of CR and CRD's are applied in the namespace. See the https://github.com/aerogear/mobile-security-service-operator#crd-definitions[CRD Definitions] to know all kinds.

=== Warning

==== MobileSecurityServicePodCount

. Switch to the Mobile Security Service namespace by running `oc project <namespace>`. E.g `oc project mobile-security-service`
. Check if it has at least 3 pods (Service, Database and Operator) by running `oc get pods`. See https://github.com/aerogear/mobile-security-service-operator#Installing[Installing] README section to check the expected results.

NOTE: The operator should maintain the number of pods running for the MSS Service and its Database.

== Validate

. Check if the operator pod to is present by running `oc get pods | grep operator`. Following an example of the expected result.
Expand Down
10 changes: 0 additions & 10 deletions deploy/monitor/prometheus_rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,3 @@ spec:
description: "The mobile-security-service-operator has been down for more than 5 minutes. "
summary: "The mobile-security-service-operator is down. For more information see on the MSS operator https://github.com/aerogear/mobile-security-service-operator"
sop_url: "https://github.com/aerogear/mobile-security-service-operator/blob/0.2.0/SOP/SOP-operator.adoc"
- alert: MobileSecurityServicePodCount
annotations:
description: "The Pod count for the mobile-security-service has changed in the last 5 minutes and is less than the minimal required value."
summary: Pod count for namespace mobile-security-service is {{ printf "%.0f" $value }}. Expected 3 pods. For more information see on the MSS operator https://github.com/aerogear/mobile-security-service-operator
sop_url: "https://github.com/aerogear/mobile-security-service-operator/blob/0.2.0/SOP/SOP-operator.adoc"
expr: |
(1-absent(kube_pod_status_ready{condition="true", namespace="mobile-security-service"})) or sum(kube_pod_status_ready{condition="true", namespace="mobile-security-service"}) < 3
for: 5m
labels:
severity: warning

0 comments on commit 6cf52ac

Please sign in to comment.