master
Denis Knauf 2024-01-22 23:31:26 +01:00 committed by root
commit 9e150acfe6
2 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
source 'https://rubygems.org'
gem 'ruby-lxc', git: 'https://git.denkn.at/deac/ruby-lxc'
gem 'prometheus-client'
gem 'puma'
gem 'rack'
gem 'puma'
gem 'sd_notify'
gem 'cbor'

17
lxc-exporter.service.erb Normal file
View 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