Skip to content

Commit

Permalink
add OnionskinsDropped alert rule
Browse files Browse the repository at this point in the history
use 'for: 15m' consistently also for the TorHighDnsTimeoutRate rule
  • Loading branch information
nusenu committed Aug 28, 2023
1 parent 9b69375 commit 38118d9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,23 @@ tor_prometheus_alert_rules:
description: '{% raw %}{{ $labels.id }} key certificate will expire and auto-shutdown in {{ $value }} hours.{% endraw %}'
- alert: TorHighDnsTimeoutRate
expr: '(sum by (instance)(rate(tor_relay_exit_dns_error_total{reason="tor_timeout"}[15m])))/(sum by (instance)(rate(tor_relay_exit_dns_query_total[15m])))*100 > 1.5'
for: 10m
for: 15m
labels:
severity: warning
annotations:
summary: 'DNS timeout rate is above 1.5% for over 10 minutes'
description: '{% raw %}{{ printf "%.3f" $value }}% of tor DNS queries on {{ $labels.instance }} result in a timeout.{% endraw %}'
# - alert: TorOnionskinsDropped
# expr: 'rate(tor_relay_load_onionskins_total{action="dropped"}[15m]) > 0'
# for: 15m
# labels:
# severity: warning
- alert: TorOnionskinsDropped
expr: 'rate(tor_relay_load_onionskins_total{action="dropped"}[15m]) > 0'
for: 15m
labels:
severity: warning
annotations:
description: '{% raw %}Relay {{ $labels.id }} is dropping onionskins for over 15 minutes.{% endraw %}'
# - alert: TorFlagExitChanged
# expr: 'changes(tor_relay_flag{type="Exit"}[15m]) > 0'
# labels:
# severity: warning
# severity: informational
# annotations:
# description: "{% raw %}The exit flag changed on relay {{ $labels.id }}. Was that intended?{% endraw %}"
# - alert: TorFlagChanged
Expand Down

0 comments on commit 38118d9

Please sign in to comment.