Cannot scrape metrics for apache status

Bug #1900924 reported by Benjamin Allot
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Telegraf Charm
New
Undecided
Unassigned

Bug Description

Hello,

Upon making a relation with an apache2 units, I end up with the following apache configuration according to https://git.launchpad.net/charm-telegraf/tree/src/templates/apache-server-status.tmpl

VirtualHost 127.0.0.1:8080>
    ServerName 127.0.0.1
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    LogLevel info
    ErrorLog ${APACHE_LOG_DIR}/server-status-error.log
    CustomLog ${APACHE_LOG_DIR}/server-status-access.log combined

    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from localhost
    </Location>
</VirtualHost>

However, the charm configure the telegraf inputs plugin to probe the private IP address of the apache2 units instead of localhost: https://git.launchpad.net/charm-telegraf/tree/src/reactive/telegraf.py#n960

Telegraf should be configured to probe localhost only or the file is rendered to use the private-address in the VirtualHost stanza.

I have a preference for the former, for the sake of security and simplicity.

Benjamin Allot (ballot)
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.