Cannot scrape metrics for apache status
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:/
VirtualHost 127.0.0.1:8080>
ServerName 127.0.0.1
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
LogLevel info
ErrorLog ${APACHE_
CustomLog ${APACHE_
<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:/
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.
description: | updated |
description: | updated |