Skip to content

Commit

Permalink
Merge pull request #64 from tbeerman/add_prometheus_to_server
Browse files Browse the repository at this point in the history
add option to enable the server status page
  • Loading branch information
tbeerman authored Apr 22, 2020
2 parents 1c4ed49 + 1bb9aed commit 5e88f7b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/httpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ EnableSendfile on
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf

{% if RUCIO_HTTPD_ENABLE_STATUS|default('False') == 'True' %}
LoadModule status_module modules/mod_status.so
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
{% endif %}

{% if RUCIO_HTTPD_MPM_MODE is defined and RUCIO_HTTPD_MPM_MODE == "prefork" -%}
StartServers {{ RUCIO_HTTPD_START_SERVERS | default('8') }}
MinSpareServers {{ RUCIO_HTTPD_MIN_SPARE_SERVERS | default('5') }}
Expand Down

0 comments on commit 5e88f7b

Please sign in to comment.