Remove monitoring01 host configuration and unused service modules (prometheus, grafana, loki, tempo, pyroscope). Migrate blackbox, exportarr, and pve exporters to monitoring02 with scrape configs moved to VictoriaMetrics. Update alert rules, terraform vault policies/secrets, http-proxy entries, and documentation to reflect the monitoring02 migration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
454 B
Nix
18 lines
454 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;
|
|
};
|
|
}
|