Provides an exporter for Prometheus, to collect DNSBL-informations of several DNSBL-providers.
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.
 
 
 
Denis Knauf 1728f7f0c6 require yaml added 3 days ago
.gitignore Splitting Registry for action and process-statistics and clean up repositry. 1 year ago
Gemfile support for systemd-notify mode + nix dependencies build by bundix 3 days ago
README.adoc README: new behaviour described. 1 year ago
config.ru config.ru does not depend on yaml anymore. comments for registry= 1 year ago
config.yml.example Splitting Registry for action and process-statistics and clean up repositry. 1 year ago
dnsbl_exporter.rb require yaml added 3 days ago
dnsbl_exporter.service.erb README and service-file-template added 3 years ago
gemset.nix support for systemd-notify mode + nix dependencies build by bundix 3 days ago
shell.nix support for systemd-notify mode + nix dependencies build by bundix 3 days ago

README.adoc

DNSBL exporter

Provides an exporter to scan known DNSBL-providers for listing of target-IP.

Installation

  1. You have to installed ruby and bundler:

    apt install ruby
    gem install bundler
  2. Clone the repository to the destination, you want to have installed dnsbl_exporter.

  3. Copy config.yml.example to config.yml and change settings like resolver.

  4. 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
  5. 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}}