61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{
|
|
networking.firewall.allowedTCPPorts = [ 8428 ];
|
|
|
|
services.victoriametrics = {
|
|
enable = true;
|
|
listenAddress = ":8428";
|
|
stateDir = "victoriametrics"; # maps to /var/lib/victoriametrics
|
|
|
|
retentionPeriod = "365d";
|
|
|
|
prometheusConfig = {
|
|
global.scrape_interval = "10s";
|
|
|
|
scrape_configs = [
|
|
{
|
|
job_name = "navidrome";
|
|
metrics_path = "/metrics";
|
|
scheme = "http";
|
|
static_configs = [
|
|
{
|
|
targets = [ "192.168.178.10:4533" ];
|
|
labels.instance = "music.huber.cloud";
|
|
}
|
|
];
|
|
}
|
|
|
|
{
|
|
job_name = "jellyfin";
|
|
metrics_path = "/metrics";
|
|
scheme = "http";
|
|
static_configs = [
|
|
{
|
|
targets = [ "192.168.178.10:8096" ];
|
|
labels.instance = "jellyfin.huber.cloud";
|
|
}
|
|
];
|
|
}
|
|
|
|
{
|
|
job_name = "immich_api";
|
|
static_configs = [
|
|
{
|
|
targets = [ "192.168.178.10:2284" ];
|
|
labels.instance = "photos.huber.cloud";
|
|
}
|
|
];
|
|
}
|
|
|
|
{
|
|
job_name = "immich_microservices";
|
|
static_configs = [
|
|
{
|
|
targets = [ "192.168.178.10:2285" ];
|
|
labels.instance = "photos.huber.cloud";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|