Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Following config for /etc/apache2/sites-available/gnocchi.conf works fine at this moment:

Listen 8041

<virtualhost *:8041=""> WSGIDaemonProcess gnocchi lang='en_US.UTF-8' locale='en_US.UTF-8' user=stack display-name=%{GROUP} processes=2 threads=32 WSGIProcessGroup gnocchi WSGIScriptAlias / /usr/local/bin/gnocchi-api WSGIApplicationGroup %{GLOBAL}

<IfVersion >= 2.4>
    ErrorLogFormat "%{cu}t %M"

<Directory />
    Options FollowSymLinks
    AllowOverride None
    <IfVersion >= 2.4>
        Require all granted
    <IfVersion < 2.4>
        Order allow,deny
        Allow from all

ErrorLog /var/log/apache2/gnocchi.log
CustomLog /var/log/apache2/gnocchi-access.log combined


WSGISocketPrefix /var/run/apache2

After service apache2 restart output for command gnocchi status is following:

$ gnocchi status +-----------------------------------------------------+-------+ | Field | Value | +-----------------------------------------------------+-------+ | storage/number of metric having measures to process | 0 | | storage/total number of measures to process | 0 | +-----------------------------------------------------+-------+

Not like before:

$ gnocchi status <html><head> <title>403 Forbidden</title> </head><body>


You don't have permission to access /v1/status on this server.

Apache/2.4.18 (Ubuntu) Server at Port 8041
</body></html> (HTTP 403)