merge
This commit is contained in:
commit
9e150acfe6
3
Gemfile
3
Gemfile
|
@ -1,6 +1,7 @@
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
gem 'ruby-lxc', git: 'https://git.denkn.at/deac/ruby-lxc'
|
gem 'ruby-lxc', git: 'https://git.denkn.at/deac/ruby-lxc'
|
||||||
gem 'prometheus-client'
|
gem 'prometheus-client'
|
||||||
gem 'puma'
|
|
||||||
gem 'rack'
|
gem 'rack'
|
||||||
|
gem 'puma'
|
||||||
|
gem 'sd_notify'
|
||||||
gem 'cbor'
|
gem 'cbor'
|
||||||
|
|
17
lxc-exporter.service.erb
Normal file
17
lxc-exporter.service.erb
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Prometheus lxc-exporter for getting container health
|
||||||
|
Documentation=https://git.denkn.at/deac/lxc-exporter
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=notify
|
||||||
|
KillMode=mixed
|
||||||
|
WatchdogSec=10
|
||||||
|
Restart=always
|
||||||
|
User=prometheus
|
||||||
|
WorkingDirectory=<%= Dir.pwd %>
|
||||||
|
ExecStart=<%= `which bundle`.chomp %> exec puma -b tcp://[::]:9124 -e production --tag lxc-exporter
|
||||||
|
ExecReload=/bin/kill -USR1 $MAINPID
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue