author | Luke Hoersten <luke@hoersten.org> |
Sat, 07 Nov 2020 08:18:50 -0600 | |
changeset 15 | f1c6e6e4c43b |
parent 9 | ddf84e986362 |
permissions | -rw-r--r-- |
9
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
[Unit] |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
Description=Bitcoind Prometheus Exporter |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
Wants=bitcoind.service |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
After=bitcoind.service |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
|
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
[Service] |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
ExecStart=/usr/local/bin/bitcoind-prometheus-exporter.py |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
User=prometheus |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
Environment="BITCOIN_CONF_PATH={{bitcoind_prometheus_exporter_conf}}" |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
10 |
|
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
11 |
PrivateTmp=true |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
12 |
ProtectSystem=full |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
13 |
NoNewPrivileges=true |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
14 |
PrivateDevices=true |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
15 |
MemoryDenyWriteExecute=true |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
16 |
|
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
[Install] |
ddf84e986362
Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
WantedBy=multi-user.target |