mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
service/navidrome: add monitoring but disabled
This commit is contained in:
parent
36bbc03252
commit
95394f8881
2 changed files with 35 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue