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
6 changes: 6 additions & 0 deletions ansible/roles/prometheus/files/alert_ooni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ groups:
summary: 'Mirror {{ $labels.instance }} lags by {{ $value | humanizeDuration }}'
description: '{{ if eq $labels.instance "ooni.torproject.org:443" }}Run `make update-site`.{{ end }}'

- alert: TestHelperDown
expr: up{domain!=""} != 1
for: 5m
annotations:
summary: 'test helper down: {{ $labels.instance }} ({{ $labels.domain }})'

...
25 changes: 14 additions & 11 deletions ansible/roles/prometheus/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
dom0_hosts:
- ams-slack-1.ooni.org
- doams1-countly.ooni.nu
- mia-echoth.ooni.nu
- mia-httpth.ooni.nu

blackbox_jobs:
# TODO add these records to the ALB config
Expand Down Expand Up @@ -51,22 +49,27 @@ blackbox_jobs:
# cloudfront
- "https://d3kr4emv7f56qa.cloudfront.net/bouncer/net-tests"

# IP addresses are used for test-helpers in monitoring configuration for some
# historical reason hopefully remembered by @hellais.
- name: "ooni explorer homepage"
module: "http_2xx"
targets:
- "https://explorer.ooni.org/"

# We use IP monitoring since this is what is served to users through check-in.
- name: "ooni tcp echo"
module: "ooni_tcp_echo_ok"
ignore_instance_down: true # covered by the more specific TestHelperDown alert
labels:
domain: "echo.th.prod.ooni.io"
targets:
- "{{ lookup('dig', 'c.echo.th.ooni.io/A') }}:80"
- "{{ lookup('dig', 'echo.th.prod.ooni.io/A') }}:80"

- name: "ooni http return json headers"
module: "ooni_http_return_json_headers_ok"
ignore_instance_down: true # covered by the more specific TestHelperDown alert
labels:
domain: "json.th.prod.ooni.io"
targets:
- "http://{{ lookup('dig', 'a.http.th.ooni.io/A') }}:80"

- name: "ooni explorer homepage"
module: "http_2xx"
targets:
- "https://explorer.ooni.org/"
- "http://{{ lookup('dig', 'json.th.prod.ooni.io/A') }}:80"

# API #

Expand Down
Loading