~hloeung/content-cache-charm:metrics

Last commit made on 2021-02-25
Get this branch:
git clone -b metrics https://git.launchpad.net/~hloeung/content-cache-charm
Only Haw Loeung can upload to this branch. If you are Haw Loeung please log in for upload directions.

Branch merges

Branch information

Name:
metrics
Repository:
lp:~hloeung/content-cache-charm

Recent commits

0e91790... by Haw Loeung

Allow overriding listen address used by metrics

d291b25... by Haw Loeung

Enable Nginx basic server status metrics - LP:1916078

This lets us enable the telegraf Nginx plugin and scape global server
metrics such as active connections, current server accepts, etc.

Also restrict access to metrics to localhost. Telegraf'
inputs.prometheus can access /metrics.

9e1d668... by Haw Loeung

Back to X-Forwarded-For as some things expect it to be this (e.g. Moin

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397710
Reviewed-by: Paul Collins <email address hidden>

2b3f15b... by Haw Loeung

Back to X-Forwarded-For as some things expect it to be this (e.g. Moin

e96904c... by Haw Loeung

Revert "Use 'http-check send hdr' instead of adding headers at end of httpchk version"

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397708
Reviewed-by: Paul Collins <email address hidden>

0d24b87... by Haw Loeung

Revert "Use 'http-check send hdr' instead of adding headers at end of httpchk version"

This reverts commit 3bd2938698a7bdad5ada38ac84c635108749fc43.

3fcb042... by Haw Loeung

Use 'http-check send hdr' instead of adding headers at end of httpchk version

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397703
Reviewed-by: Colin Misare <email address hidden>

3bd2938... by Haw Loeung

Use 'http-check send hdr' instead of adding headers at end of httpchk version

This fixes the warning about it:

| [WARNING] 038/222205 (17722) : parsing [/etc/haproxy/haproxy.cfg:94]: 'option httpchk' : hiding headers or body at the end of the version string is deprecated. Please, consider to use 'http-check send' directive instead.

ecc5578... by Haw Loeung

Introduce new header X-Cache-Request-IP and log that

This prevents spoofing of X-Forward-For or any additional hops from
being logged.

Reviewed-on: https://code.launchpad.net/~hloeung/content-cache-charm/+git/content-cache-charm/+merge/397698
Reviewed-by: Colin Misare <email address hidden>

9e2a612... by Haw Loeung

Introduce new header X-Cache-Request-IP and log that

This prevents spoofing of X-Forward-For or any additional hops from
being logged.