You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
3 days ago | |
---|---|---|
.gitignore | 1 year ago | |
Gemfile | 3 days ago | |
README.adoc | 1 year ago | |
config.ru | 1 year ago | |
config.yml.example | 1 year ago | |
dnsbl_exporter.rb | 3 days ago | |
dnsbl_exporter.service.erb | 3 years ago | |
gemset.nix | 3 days ago | |
shell.nix | 3 days ago |
README.adoc
DNSBL exporter
Provides an exporter to scan known DNSBL-providers for listing of target-IP.
Installation
-
You have to installed
ruby
andbundler
:apt install ruby gem install bundler
-
Clone the repository to the destination, you want to have installed dnsbl_exporter.
-
Copy
config.yml.example
toconfig.yml
and change settings like resolver. -
Start on boot:
useradd prometheus sudo -u prometheus bundle install erb dnsbl_exporter.service.erb > /etc/systemd/system/dnsbl_exporter.service systemctl daemon-reload systemctl enable --now dnsbl_exporter.service
-
In prometheus, define the target-IP as
target
-param.- job_name: dnsbl4 static_configs: - targets: - '1.2.3.4' - '1234::abcd' relabel_configs: - source_labels: [__address__] target_label: __param_target replacement: '${1}' - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: {{prometheus_jobs_dnsbl_target}}