Radarr on TrueNAS jail is too old - exportarr fails on /api/v3/wanted/cutoff endpoint (404). Keep sonarr which works. Vault secret kept for when Radarr is updated. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
633 B
Nix
28 lines
633 B
Nix
{ config, ... }:
|
|
{
|
|
# Vault secret for API key
|
|
vault.secrets.sonarr-api-key = {
|
|
secretPath = "services/exportarr/sonarr";
|
|
extractKey = "api_key";
|
|
services = [ "prometheus-exportarr-sonarr-exporter" ];
|
|
};
|
|
|
|
# Sonarr exporter
|
|
services.prometheus.exporters.exportarr-sonarr = {
|
|
enable = true;
|
|
url = "http://sonarr-jail.home.2rjus.net:8989";
|
|
apiKeyFile = config.vault.secrets.sonarr-api-key.outputDir;
|
|
port = 9709;
|
|
};
|
|
|
|
# Scrape config
|
|
services.prometheus.scrapeConfigs = [
|
|
{
|
|
job_name = "sonarr";
|
|
static_configs = [{
|
|
targets = [ "localhost:9709" ];
|
|
}];
|
|
}
|
|
];
|
|
}
|