Path: blob/main/operations/observability/mixins/cross-teams/rules/components/nodes/alerts.libsonnet
2501 views
/** * Copyright (c) 2021 Gitpod GmbH. All rights reserved. * Licensed under the GNU Affero General Public License (AGPL). * See License.AGPL.txt in the project root for license information. */ { prometheusAlerts+:: { groups+: [ { name: 'gitpod-component-node-alerts', rules: [ { alert: 'GitpodNodeRunningOutOfEphemeralStorage', labels: { severity: 'critical', }, 'for': '10m', annotations: { runbook_url: 'https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodNodeRunningOutOfEphemeralStorage.md', summary: 'Node almost out of ephemeral storage', description: 'Node {{ $labels.node }} is reporting {{ printf "%.2f" $value }}% ephemeral storage left under {{ $labels.mountpoint }}.', }, expr: ||| ( min ( node_filesystem_avail_bytes{mountpoint=~"/var/lib/(kubelet|containerd)"} / node_filesystem_size_bytes{mountpoint=~"/var/lib/(kubelet|containerd)"} ) by (node, mountpoint) * 100 ) - 10 < 5 |||, }, { alert: 'GitpodNodeConntrackTableIsFull', labels: { severity: 'critical', }, 'for': '5m', annotations: { runbook_url: 'https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodNodeConntrackTableIsFull.md', summary: 'Node conntrack table is almost full', description: 'Node {{ $labels.node }} conntrack table is almost full. If it gets full, packets will be getting dropped.', }, expr: ||| (node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.95 |||, }, { alert: 'GitpodNodeConntrackTableGettingFull', labels: { severity: 'warning', }, 'for': '10m', annotations: { runbook_url: 'https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodNodeConntrackTableIsFull.md', summary: 'Node conntrack table is getting full', description: 'Node {{ $labels.node }} conntrack table is getting full. If it gets full, packets will be getting dropped.', }, expr: ||| (node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.80 |||, }, ], }, ], }, }