Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/controlplane-operations/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: controlplane-operations
version: 1.1.9
version: 1.1.10
description: A set of Plutono dashboards and Prometheus alerting rules combined with playbooks to ensure effective operations of Controlplane clusters.
maintainers:
- name: Vladimir Videlov (d051408)
Expand Down
32 changes: 32 additions & 0 deletions charts/controlplane-operations/alerts/controlplane-remote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,35 @@ groups:
description: Server is stuck in Discovery for more than {{ dig "ServerStuckInDiscovery" "for" "15m" .Values.prometheusRules }} minutes.
summary: Server stuck in Discovery.
{{- end }}

{{- if not (.Values.prometheusRules.disabled.WebhookCertificateNearExpiry | default false) }}
- alert: WebhookCertificateNearExpiry
expr: |
(webhook_injector_certificate_expiry_time_seconds - time()) < (90 * 24 * 3600 * 0.2)
Comment thread
videlov marked this conversation as resolved.
for: {{ dig "WebhookCertificateNearExpiry" "for" "5m" .Values.prometheusRules }}
Comment on lines +73 to +75
labels:
{{ include "controlplane-operations.additionalRuleLabels" . }}
Comment thread
videlov marked this conversation as resolved.
severity: {{ dig "WebhookCertificateNearExpiry" "severity" "warning" .Values.prometheusRules }}
playbook: https://operations.global.cloud.sap/docs/support/playbook/webhook-certificate-near-expiry/ #TODO: add playbook
service: {{ dig "WebhookCertificateNearExpiry" "service" .Values.prometheusRules.defaultService .Values.prometheusRules }}
support_group: {{ dig "WebhookCertificateNearExpiry" "support_group" .Values.prometheusRules.defaultSupportGroup .Values.prometheusRules }}
annotations:
summary: "Webhook certificate is below rotation threshold."
description: "Certificate expires soon, rotation should have happened since it's below threshold."
{{- end }}

{{- if not (.Values.prometheusRules.disabled.WebhookCertificateAboutToExpire | default false) }}
- alert: WebhookCertificateAboutToExpire
expr: |
(webhook_injector_certificate_expiry_time_seconds - time()) < (3 * 24 * 3600)
for: {{ dig "WebhookCertificateAboutToExpire" "for" "5m" .Values.prometheusRules }}
labels:
{{ include "controlplane-operations.additionalRuleLabels" . }}
Comment thread
videlov marked this conversation as resolved.
severity: {{ dig "WebhookCertificateAboutToExpire" "severity" "critical" .Values.prometheusRules }}
playbook: https://operations.global.cloud.sap/docs/support/playbook/webhook-certificate-about-to-expire/ #TODO: add playbook
service: {{ dig "WebhookCertificateAboutToExpire" "service" .Values.prometheusRules.defaultService .Values.prometheusRules }}
support_group: {{ dig "WebhookCertificateAboutToExpire" "support_group" .Values.prometheusRules.defaultSupportGroup .Values.prometheusRules }}
annotations:
summary: "Webhook certificate is about to expire."
description: "Certificate expires in less than 3 days."
{{- end }}
4 changes: 2 additions & 2 deletions charts/controlplane-operations/plugindefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ kind: PluginDefinition
metadata:
name: controlplane-operations
spec:
version: 1.1.9
version: 1.1.10
displayName: Controlplane operations bundle
description: Operations bundle for Controlane clusters
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/controlplane-operations/main/README.md
icon: https://raw.githubusercontent.com/cloudoperators/controlplane-operations/main/charts/controlplane-operations/kubernetes-logo.png
helmChart:
name: controlplane-operations
repository: oci://ghcr.io/cloudoperators/controlplane-operations/charts
version: 1.1.9
version: 1.1.10
options:
- name: prometheusRules.create
description: Create Prometheus rules
Expand Down
Loading