README and service-file-template added
This commit is contained in:
parent
e008df4527
commit
0f26bed053
16
README.adoc
Normal file
16
README.adoc
Normal 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
|
11
dnsbl_exporter.service.erb
Normal file
11
dnsbl_exporter.service.erb
Normal 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
|
Loading…
Reference in a new issue