diff options
Diffstat (limited to 'modules/by-name/mo/monitoring/components/prometheus.nix')
| -rw-r--r-- | modules/by-name/mo/monitoring/components/prometheus.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/by-name/mo/monitoring/components/prometheus.nix b/modules/by-name/mo/monitoring/components/prometheus.nix index bf95a6b..44c5952 100644 --- a/modules/by-name/mo/monitoring/components/prometheus.nix +++ b/modules/by-name/mo/monitoring/components/prometheus.nix @@ -42,6 +42,16 @@ in { config = lib.mkIf cfg.enable { vhack = { nginx.enable = true; + + persist.directories = [ + { + directory = "/var/lib/prometheus2"; + user = "prometheus"; + group = "prometheus"; + mode = "0700"; + } + ]; + monitoring.prometheus.sources = [ { name = "node"; |
