feat: add exportarr (#365)

- add exporters::exportarr
- deploy for radarr, sonarr and prowlarr

Reviewed-on: #365
This commit was merged in pull request #365.
This commit is contained in:
2025-07-27 19:47:26 +10:00
parent fd902c1437
commit 7fbb87b4b6
6 changed files with 120 additions and 0 deletions
@@ -0,0 +1,16 @@
[Unit]
Description=Prometheus exportarr
Wants=network-online.target
After=network-online.target
[Service]
User=<%= @user %>
Group=<%= @group %>
EnvironmentFile=<%= @vars_file %>
ExecStart=<%= @exec_path %> <%= @app %> --port <%= @port %> --url <%= @url %> --api-key <%= @api_key %> --config <%= @config_file %> --enable-additional-metrics <%= @extra_metrics %><% if @app == 'prowlarr' %> --backfill <%= @backfill %><% end %>
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,4 @@
# THIS FILE IS MANAGED BY PUPPET
<% @options.each do |key, value| -%>
<%= key %>=<%= value %>
<% end -%>