Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Added systemd service file and install instructions #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ and run the following command:
$ unbound-telemetry shm --help
```

### Install systemd service

Copy unbound-telemetry.service to /etc/systemd/system/unbound-telemetry.service
and run the following commands:

```bash
$ systemctl daemon-reload
$ systemctl enable unbound-telemetry
$ systemctl start unbound-telemetry
```

### Monitoring

`/healthcheck` URL can be used for automated monitoring;
Expand Down
10 changes: 10 additions & 0 deletions unbound-telemetry.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Prometheus exporter for unbound
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/unbound-telemetry tcp --control-interface 127.0.0.1:8953 --server-cert-file /etc/unbound/unbound_server.pem --control-cert-file /etc/unbound/unbound_control.pem --control-key-file /etc/unbound/unbound_control.key

[Install]
WantedBy=multi-user.target