Increase nfiles in the systemd unit.
This commit is contained in:
parent
8ecaa5335b
commit
d311d4b840
|
@ -10,4 +10,5 @@ prometheus_confdir: '/opt/prometheus/conf'
|
||||||
prometheus_cmd: '{{ prometheus_dist_dir }}/{{ prometheus_dir }}/prometheus'
|
prometheus_cmd: '{{ prometheus_dist_dir }}/{{ prometheus_dir }}/prometheus'
|
||||||
prometheus_loglevel: info
|
prometheus_loglevel: info
|
||||||
prometheus_http_port: 9090
|
prometheus_http_port: 9090
|
||||||
prometheus_opts: '--storage.tsdb.retention=120d'
|
prometheus_opts: '--storage.tsdb.retention.time=120d'
|
||||||
|
# --storage.tsdb.retention.size=512GB
|
||||||
|
|
|
@ -7,6 +7,8 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User={{ prometheus_user }}
|
User={{ prometheus_user }}
|
||||||
Group={{ prometheus_user }}
|
Group={{ prometheus_user }}
|
||||||
|
LimitCORE=infinity
|
||||||
|
LimitNOFILE=65536
|
||||||
EnvironmentFile=/etc/default/prometheus
|
EnvironmentFile=/etc/default/prometheus
|
||||||
ExecStart={{ prometheus_cmd }} $PROMETHEUS_STARTUP_OPTS
|
ExecStart={{ prometheus_cmd }} $PROMETHEUS_STARTUP_OPTS
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
Loading…
Reference in New Issue