Răsfoiți Sursa

Merge pull request #4623 from tyler-8/metrics_docs

Notes on multiprocessing metrics and gunicorn vs uwsgi
Jeremy Stretch 5 ani în urmă
părinte
comite
cfe8882f72
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      docs/additional-features/prometheus-metrics.md

+ 4 - 0
docs/additional-features/prometheus-metrics.md

@@ -32,3 +32,7 @@ This can be setup by first creating a shared directory and then adding this line
 ```
 environment=prometheus_multiproc_dir=/tmp/prometheus_metrics
 ```
+
+#### Accuracy
+
+If having accurate long-term metrics in a multiprocess environment is important to you then it's recommended you use the `uwsgi` library instead of `gunicorn`. The issue lies in the way `gunicorn` tracks worker processes (vs `uwsgi`) which helps manage the metrics files created by the above configurations. If you're using Netbox with gunicorn in a containerized enviroment following the one-process-per-container methodology, then you will likely not need to change to `uwsgi`. More details can be found in  [issue #3779](https://github.com/netbox-community/netbox/issues/3779#issuecomment-590547562).