~ballot/content-cache-charm/+git/content-cache-charm:fix_expose

Last commit made on 2019-09-13
Get this branch:
git clone -b fix_expose https://git.launchpad.net/~ballot/content-cache-charm/+git/content-cache-charm
Only Benjamin Allot can upload to this branch. If you are Benjamin Allot please log in for upload directions.

Branch merges

Branch information

Recent commits

3f2b37c... by Benjamin Allot

Keep the nginx metrics port exposed in configure_haproxy hook

Also add a tests to check the ports management in the configure_haproxy

94af719... by Benjamin Allot

Add a counter for requests unrelated to healthchecks

To calculate the cache hit ratio, having a separate counter for all the
requests that are not target location /check/ is better.

Reviewed-on: https://code.launchpad.net/~ballot/content-cache-charm/+git/content-cache-charm/+merge/372559
Reviewed-by: Joel Sing <email address hidden>

46da77f... by Benjamin Allot

Black formatting

d9c217b... by Benjamin Allot

Add a counter for requests unrelated to healthchecks

To calculate the cache hit ratio, having a separate counter for all the
requests that are not target location /check/ is better.

49168b8... by Haw Loeung

Clean up unused output for unit tests (also in wrong directory) and reformatted files by 'black'

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

3b126c4... by Haw Loeung

Reformatted by black

2e24f82... by Haw Loeung

Cleanup unused unit test output, seems merged in with basics and also in the wrong directory

df3ac8c... by Benjamin Allot

Update README.md with the new feature exposing nginx metrics

Reviewed-on: https://code.launchpad.net/~ballot/content-cache-charm/+git/content-cache-charm/+merge/372365
Reviewed-by: Tom Haddon <email address hidden>

65e7ce7... by Benjamin Allot

Update README.md with the new feature exposing nginx metrics

3fa2dbc... by Benjamin Allot

Add nginx metrics for cache hits

A new option `enable_prometheus_metrics` can be set to True to expose nginx metrics about cache hits and HTTP requests in prometheus format.
This metrics are available on port 9145.

Update tests

All the tests have been adapted with the new bits of configuration and
new tests have been developed for the new feature.

Reviewed-on: https://code.launchpad.net/~ballot/content-cache-charm/+git/content-cache-charm/+merge/372309
Reviewed-by: Joel Sing <email address hidden>