README and service-file-template added

master
Denis Knauf 2018-12-14 15:16:21 +01:00
parent e008df4527
commit 0f26bed053
2 changed files with 27 additions and 0 deletions

16
README.adoc Normal file
View File

@ -0,0 +1,16 @@
= DNSBL exporter
Provides an exporter to scan known DNSBL-provides for listing of target-IP.
== Installation
You have to installed ruby and bundler.
1. Clone the repository to the destination, you want to have installed dnsbl_exporter.
2.
+
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

View File

@ -0,0 +1,11 @@
[Unit]
Description=Prometheus dnsbl_exporter
[Service]
Restart=always
User=prometheus
WorkingDirectory=<%= Dir.pwd %>
ExecStart=<%= `which bundle`.chomp %> exec puma -b tcp://localhost:9123
[Install]
WantedBy=multi-user.target