Skip to content

Commit

Permalink
Merge pull request openshift#390 from JacobTanenbaum/alertsTimestamp
Browse files Browse the repository at this point in the history
more accuratly alert on a single nodes iptable stale
  • Loading branch information
openshift-merge-robot committed Nov 13, 2019
2 parents 6fcfd00 + 6629ddb commit e86bdfc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bindata/network/openshift-sdn/alert-rules.yaml
Expand Up @@ -56,9 +56,11 @@ spec:
- alert: NodeIPTablesStale
# there is some scrape delay and some other offset 120 is not really 120s but it is still too long
annotations:
message: SDN pod {{"{{"}} $labels.pod {{"}}"}} on node {{"{{"}} $labels.node {{"}}"}} has gone too long without syncing iptables rules. NOTE - There is some scrape delay and other offsets, 120s isn't exact but it is still too high.
message: SDN pod {{"{{"}} $labels.pod {{"}}"}} on node {{"{{"}} $labels.node {{"}}"}} has gone too long without syncing iptables rules.
expr: |
(time() - kubeproxy_sync_proxy_rules_last_timestamp_seconds) * on(pod) group_right kube_pod_info{namespace="openshift-sdn", pod=~"sdn-[^-]*"} > 120
(timestamp(kubeproxy_sync_proxy_rules_last_timestamp_seconds)
- on(pod) kubeproxy_sync_proxy_rules_last_timestamp_seconds)
* on(pod) group_right kube_pod_info{namespace="openshift-sdn", pod=~"sdn-[^-]*"}> 120
for: 20m
labels:
severity: warning
Expand Down

0 comments on commit e86bdfc

Please sign in to comment.