-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #416 from vshn/ha-alerts
Ha alerts
- Loading branch information
Showing
32 changed files
with
800 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -415,22 +415,21 @@ parameters: | |
services: | ||
# Used for deploying jobs | ||
controlNamespace: "syn-appcat-control" | ||
# Works only for VSHN services for now | ||
emailAlerting: | ||
enabled: false | ||
smtpHost: "smtp.eu.mailgun.org:465" | ||
smtpUsername: [email protected] | ||
smtpPassword: "?{vaultkv:__shared__/__shared__/mailgun/smtp_password}" | ||
smtpFromAddress: [email protected] | ||
secretNamespace: syn-appcat | ||
secretName: mailgun-smtp-credentials | ||
vshn: | ||
enabled: false | ||
externalDatabaseConnectionsEnabled: "false" | ||
e2eTests: false | ||
quotasEnabled: ${appcat:quotasEnabled} | ||
secretNamespace: ${crossplane:namespace} | ||
emailAlerting: | ||
enabled: false | ||
smtpHost: "smtp.eu.mailgun.org:465" | ||
smtpUsername: [email protected] | ||
smtpPassword: "?{vaultkv:__shared__/__shared__/mailgun/smtp_password}" | ||
smtpFromAddress: [email protected] | ||
secretNamespace: syn-appcat | ||
secretName: mailgun-smtp-credentials | ||
stsResizer: | ||
enabled: true | ||
postgres: | ||
billing: true | ||
# bucket_region: 'lpg' || 'ch-gva-2' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
component/tests/golden/apiserver/appcat/appcat/10_appcat_backup_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: appcat-backup | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-backup | ||
rules: | ||
- alert: AppCatBackupJobError | ||
annotations: | ||
description: The backup job {{ $labels.job_name }} in namespace {{ $labels.namespace | ||
}} has failed. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/AppCatBackupJobError.html | ||
summary: AppCat service backup failed. | ||
expr: kube_job_failed{job_name=~".*backup.*", namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar |
37 changes: 37 additions & 0 deletions
37
component/tests/golden/apiserver/appcat/appcat/10_appcat_ha_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: appcat-ha | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-ha | ||
rules: | ||
- alert: AppCatHighAvailableDeploymentWarning | ||
annotations: | ||
description: The deployment {{ $labels.deployment }} in namespace {{ $labels.namespace | ||
}} has less replicas than expected. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableDeploymentWarning.html | ||
summary: AppCat service instance has unavailable pods. | ||
expr: kube_deployment_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 1 AND kube_deployment_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
- kube_deployment_status_replicas_ready{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar | ||
- alert: AppCatHighAvailableStatefulsetWarning | ||
annotations: | ||
description: The statefulset {{ $labels.statefulset }} in namespace {{ | ||
$labels.namespace }} has less replicas than expected. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableStatefulsetWarning.html | ||
summary: AppCat service instance has unavailable pods. | ||
expr: kube_statefulset_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 1 AND kube_statefulset_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
- kube_statefulset_status_replicas_ready{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar |
21 changes: 21 additions & 0 deletions
21
.../golden/cloudscale-metrics-collector-cloud/appcat/appcat/10_appcat_backup_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: appcat-backup | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-backup | ||
rules: | ||
- alert: AppCatBackupJobError | ||
annotations: | ||
description: The backup job {{ $labels.job_name }} in namespace {{ $labels.namespace | ||
}} has failed. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/AppCatBackupJobError.html | ||
summary: AppCat service backup failed. | ||
expr: kube_job_failed{job_name=~".*backup.*", namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar |
37 changes: 37 additions & 0 deletions
37
...ests/golden/cloudscale-metrics-collector-cloud/appcat/appcat/10_appcat_ha_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: appcat-ha | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-ha | ||
rules: | ||
- alert: AppCatHighAvailableDeploymentWarning | ||
annotations: | ||
description: The deployment {{ $labels.deployment }} in namespace {{ $labels.namespace | ||
}} has less replicas than expected. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableDeploymentWarning.html | ||
summary: AppCat service instance has unavailable pods. | ||
expr: kube_deployment_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 1 AND kube_deployment_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
- kube_deployment_status_replicas_ready{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar | ||
- alert: AppCatHighAvailableStatefulsetWarning | ||
annotations: | ||
description: The statefulset {{ $labels.statefulset }} in namespace {{ | ||
$labels.namespace }} has less replicas than expected. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableStatefulsetWarning.html | ||
summary: AppCat service instance has unavailable pods. | ||
expr: kube_statefulset_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 1 AND kube_statefulset_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
- kube_statefulset_status_replicas_ready{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar |
21 changes: 21 additions & 0 deletions
21
...olden/cloudscale-metrics-collector-managed/appcat/appcat/10_appcat_backup_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: appcat-backup | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-backup | ||
rules: | ||
- alert: AppCatBackupJobError | ||
annotations: | ||
description: The backup job {{ $labels.job_name }} in namespace {{ $labels.namespace | ||
}} has failed. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/AppCatBackupJobError.html | ||
summary: AppCat service backup failed. | ||
expr: kube_job_failed{job_name=~".*backup.*", namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar |
37 changes: 37 additions & 0 deletions
37
...ts/golden/cloudscale-metrics-collector-managed/appcat/appcat/10_appcat_ha_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: appcat-ha | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-ha | ||
rules: | ||
- alert: AppCatHighAvailableDeploymentWarning | ||
annotations: | ||
description: The deployment {{ $labels.deployment }} in namespace {{ $labels.namespace | ||
}} has less replicas than expected. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableDeploymentWarning.html | ||
summary: AppCat service instance has unavailable pods. | ||
expr: kube_deployment_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 1 AND kube_deployment_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
- kube_deployment_status_replicas_ready{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar | ||
- alert: AppCatHighAvailableStatefulsetWarning | ||
annotations: | ||
description: The statefulset {{ $labels.statefulset }} in namespace {{ | ||
$labels.namespace }} has less replicas than expected. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/vshn/AppCatHighAvailableStatefulsetWarning.html | ||
summary: AppCat service instance has unavailable pods. | ||
expr: kube_statefulset_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 1 AND kube_statefulset_status_replicas{namespace=~"vshn-(postgresql|redis)-.*"} | ||
- kube_statefulset_status_replicas_ready{namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar |
21 changes: 21 additions & 0 deletions
21
component/tests/golden/cloudscale/appcat/appcat/10_appcat_backup_monitoring.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: appcat-backup | ||
namespace: syn-appcat | ||
spec: | ||
groups: | ||
- name: appcat-backup | ||
rules: | ||
- alert: AppCatBackupJobError | ||
annotations: | ||
description: The backup job {{ $labels.job_name }} in namespace {{ $labels.namespace | ||
}} has failed. | ||
runbook_url: https://kb.vshn.ch/app-catalog/how-tos/appcat/AppCatBackupJobError.html | ||
summary: AppCat service backup failed. | ||
expr: kube_job_failed{job_name=~".*backup.*", namespace=~"vshn-(postgresql|redis)-.*"} | ||
> 0 | ||
for: 1m | ||
labels: | ||
severity: warning | ||
syn_team: schedar |
Oops, something went wrong.