apache2 relation doesn't properly configure either apache2 or telegraf
Bug #1813288 reported by
Junien F
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hi,
When related to apache2, telegraf generates a vhost stanza starting with :
<VirtualHost 127.0.0.1:8080>
ServerName 127.0.0.1
[...]
However, in the telegraf plugin config, the following is done :
addr = rel['private-
url = 'http://{}:{}/server-
And 'private-address' is never 127.0.0.1.
So if you have another vhost listening on port 8080, it's possible it will get the telegraf requests for server-status, which doesn't work.
I don't see why we don't use 127.0.0.1 all the time in the telegraf apache2 plugin config, would that break some configurations ?
Thanks
To post a comment you must log in.
Confirmed, in apache_ input(apache) addr = rel['private- address' ] (the relation private-address) and that could be switched to localhost, if we're sure that we don't want to have telegraf monitor non-local Apache instances. If we do, then we need to fix the vhost template which has 127.0.0.1 hardcoded in.