service/navidrome: add monitoring but disabled

This commit is contained in:
Felix Buehler 2023-04-13 21:06:58 +02:00
parent 36bbc03252
commit 95394f8881
2 changed files with 35 additions and 1 deletions

View file

@ -42,9 +42,10 @@ in
settings = cfg.settings // {
Port = cfg.port;
Address = "127.0.0.1"; # Behind reverse proxy, so only loopback
Address = "127.0.0.1";
MusicFolder = cfg.musicFolder;
LogLevel = "info";
# Prometheus.Enabled = config.services.prometheus.enable;
};
};
@ -55,6 +56,32 @@ in
}
];
# TODO enable in 23.05
# services.prometheus = {
# scrapeConfigs = [
# {
# job_name = "navidrome";
# static_configs = [
# {
# targets = [ "127.0.0.1:${toString cfg.port}" ];
# labels = {
# instance = config.networking.hostName;
# };
# }
# ];
# }
# ];
# };
# services.grafana.provision = {
# dashboards.settings.providers = [
# {
# name = "Navidrome";
# options.path = pkgs.grafana-dashboards.navidrome;
# disableDeletion = true;
# }
# ];
# };
webapps.apps.navidrome = {
dashboard = {
name = "Music";