Skip to content

Commit

Permalink
Set a predefined directory for multi-process Prometheus metrics (#3628)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova authored Nov 21, 2023
1 parent 5504ec8 commit 4651dd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openshift/system/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ ENV BASH_ENV=/opt/app-root/etc/scl_enable \
ENV=/opt/app-root/etc/scl_enable \
PROMPT_COMMAND=". /opt/app-root/etc/scl_enable" \
RAILS_ENV=production \
SAFETY_ASSURED=1
SAFETY_ASSURED=1 \
prometheus_multiproc_dir=/opt/system/tmp/prometheus-client-mmap-dir

RUN source /opt/app-root/etc/scl_enable \
&& gem install bundler --version 2.2.25 \
Expand All @@ -67,7 +68,7 @@ ADD openshift/system/config/* ./config/

RUN source /opt/app-root/etc/scl_enable \
&& bundle exec rake tmp:create \
&& mkdir -p public/assets db/sphinx \
&& mkdir -p public/assets db/sphinx tmp/prometheus-client-mmap-dir \
&& chmod g+w -vfR log tmp public/assets db/sphinx \
&& umask 0002 \
&& cd /opt/system \
Expand Down

0 comments on commit 4651dd7

Please sign in to comment.