Created
December 5, 2021 06:32
-
-
Save mmb/cd6090282e612303c948c7f07495449c to your computer and use it in GitHub Desktop.
Pi-hole blackbox probe to test DNS blocking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules: | |
pi-hole-test: | |
prober: dns | |
timeout: 5s | |
dns: | |
query_name: pagead2.googlesyndication.com | |
query_type: A | |
validate_answer_rrs: | |
fail_if_not_matches_regexp: | |
- ".*0.0.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrape_configs: | |
- job_name: pi-hole-test | |
metrics_path: /probe | |
params: | |
module: [pi-hole-test] | |
static_configs: | |
- targets: | |
- 192.168.0.2 | |
relabel_configs: | |
- source_labels: [__address__] | |
target_label: __param_target | |
- source_labels: [__param_target] | |
target_label: instance | |
- target_label: __address__ | |
replacement: 127.0.0.1:9115 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment