From c83450f0042d1d3da34e6297f3e93d4c4ce4e2d3 Mon Sep 17 00:00:00 2001 From: Daniel Palstra Date: Wed, 29 Apr 2020 07:47:23 +0200 Subject: [PATCH] Switch to systemd Example for setting environment in a systemd unit file instead of legacy supervisor config. --- docs/additional-features/prometheus-metrics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/additional-features/prometheus-metrics.md b/docs/additional-features/prometheus-metrics.md index 0aa944b74..9634c504c 100644 --- a/docs/additional-features/prometheus-metrics.md +++ b/docs/additional-features/prometheus-metrics.md @@ -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 ```