Skip to content

Commit

Permalink
Add .org targets to blackbox_exporter jobs
Browse files Browse the repository at this point in the history
* Add OONI Run v2 specific targets
  • Loading branch information
hellais committed Sep 24, 2024
1 parent 5af2063 commit 327fd0e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion ansible/roles/prometheus/templates/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ scrape_configs:
- oonirun.prod.ooni.io
- ooniprobe.prod.ooni.io


- job_name: 'ooni-web'
scrape_interval: 5m
scheme: https
Expand Down
23 changes: 23 additions & 0 deletions ansible/roles/prometheus/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,44 @@ blackbox_jobs:
module: "http_2xx"
targets:
- "https://api.ooni.io/api/v1/measurements"
- "https://api.ooni.org/api/v1/measurements"

- name: "ooni API test-list urls"
module: "https_2xx_json_meta"
targets:
- "https://api.ooni.io/api/v1/test-list/urls?country_code=US"
- "https://api.ooni.org/api/v1/test-list/urls?country_code=US"

- name: "ooni API test-helpers"
module: "https_2xx_json"
targets:
- "https://api.ooni.io/api/v1/test-helpers"
- "https://api.ooni.org/api/v1/test-helpers"

- name: "ooni API priv global overview"
module: "https_2xx_json"
targets:
- "https://api.ooni.io/api/_/global_overview"
- "https://api.ooni.org/api/_/global_overview"

# Note: this always returns true by design
- name: "OONI API check_report_id"
module: "https_2xx_json"
targets:
- "https://api.ooni.io/api/_/check_report_id?report_id=RANDOM"
- "https://api.ooni.org/api/_/check_report_id?report_id=RANDOM"

- name: "OONI API raw_measurement"
module: "https_2xx_json"
targets:
- "https://api.ooni.io/api/v1/raw_measurement?measurement_uid=20240924151005.116855_IT_httpinvalidrequestline_f63463817af9eebe"
- "https://api.ooni.org/api/v1/raw_measurement?measurement_uid=20240924151005.116855_IT_httpinvalidrequestline_f63463817af9eebe"

- name: "OONI Run v2 API"
module: "https_2xx_json"
targets:
- "https://api.ooni.org/api/v2/oonirun/links/10009"
- "https://api.ooni.org/api/v2/oonirun/links/10009/revisions"

# end of API #

Expand Down

0 comments on commit 327fd0e

Please sign in to comment.