Commit 308dcfb 1 parent 809ce62 commit 308dcfb Copy full SHA for 308dcfb
File tree 2 files changed +5
-5
lines changed
hosts/idols-aquamarine/monitoring
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,10 @@ with lib; let
8
8
cfg = config . services . my-victoriametrics ;
9
9
settingsFormat = pkgs . formats . yaml { } ;
10
10
11
- workingDir = "/var/lib/" + cfg . stateDir ;
12
11
startCLIList =
13
12
[
14
13
"${ cfg . package } /bin/victoria-metrics"
15
- "-storageDataPath=${ workingDir } "
14
+ "-storageDataPath=/var/lib/ ${ cfg . stateDir } "
16
15
"-httpListenAddr=${ cfg . listenAddress } "
17
16
"-retentionPeriod=${ cfg . retentionPeriod } "
18
17
]
138
137
Restart = "on-failure" ;
139
138
RuntimeDirectory = "victoriametrics" ;
140
139
RuntimeDirectoryMode = "0700" ;
141
- WorkingDirectory = workingDir ;
142
140
StateDirectory = cfg . stateDir ;
143
141
StateDirectoryMode = "0700" ;
144
142
Original file line number Diff line number Diff line change 6
6
# Workaround for victoriametrics to store data in another place
7
7
# https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html#Type
8
8
systemd . tmpfiles . rules = [
9
- "D /data/apps/victoriametrics 0751 victoriametrics victoriametrics - -"
10
- "L+ /var/lib/victoriametrics - - - - /data/apps/victoriametrics"
9
+ "D /data/apps/victoriametrics 0700 victoriametrics victoriametrics - -"
11
10
] ;
11
+ systemd . services . victoriametrics . serviceConfig = {
12
+ BindPaths = [ "/data/apps/victoriametrics:/var/lib/victoriametrics:rbind" ] ;
13
+ } ;
12
14
13
15
# https://victoriametrics.io/docs/victoriametrics/latest/configuration/configuration/
14
16
services . my-victoriametrics = {
You can’t perform that action at this time.
0 commit comments