mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 11:56:25 -06:00
Switch to systemd
Example for setting environment in a systemd unit file instead of legacy supervisor config.
This commit is contained in:
parent
a77d1e502c
commit
c83450f004
@ -27,8 +27,8 @@ When deploying NetBox in a multiprocess mannor--such as using Gunicorn as recome
|
||||
to collect metrics from all the worker processes. This can be any arbitrary directory to which the processes have read/write access. This directory is then made available by use of the
|
||||
`prometheus_multiproc_dir` environment variable.
|
||||
|
||||
This can be setup by first creating a shared directory and then adding this line (with the appropriate directory) to the `[program:netbox]` section of the supervisor config file.
|
||||
This can be setup by first creating a shared directory and then adding this line (with the appropriate directory) to the `[Service]` section of the systemd unit file.
|
||||
|
||||
```
|
||||
environment=prometheus_multiproc_dir=/tmp/prometheus_metrics
|
||||
Environment=prometheus_multiproc_dir=/tmp/prometheus_metrics
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user