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

Last commit made on 2019-09-05
Get this branch:
git clone -b add_lua 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

a388316... by Benjamin Allot

Rename the tests files for the nginx metrics feature

Renamed with a clearer name about the configuration itself (basic) and
fixed the various tests impacted by the change.

2428b2e... by Benjamin Allot

Update after review

* Fix docstrings.
* Fix typos
* Add a test with bad link target

200ef35... by Benjamin Allot

Add the Nginx metrics for cache HIT

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 developped for the new feature.

3db5170... by Benjamin Allot

Preparing Nginx metrics, use the prometheus.lua library

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

96337dc... by Benjamin Allot

Preparing Nginx metrics, use the prometheus.lua library

This library is from https://github.com/knyar/nginx-lua-prometheus
A MIT licensed library used to export Nginx metrics in a prometheus
format using LUA.
This is the vanilla library at 49762d9b57b16e68c55db606be66ccd2b4db548e

7a14fc8... by Benjamin Allot

Put lint target first

Reviewed-on: https://code.launchpad.net/~ballot/content-cache-charm/+git/content-cache-charm/+merge/372129
Reviewed-by: Haw Loeung <email address hidden>
Reviewed-by: Barry Price <email address hidden>

df47465... by Benjamin Allot

Put lint target first

230c2e3... by Benjamin Allot

Update "make build" target

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

5710e72... by Benjamin Allot

Update "make build" target

e9d4121... by Benjamin Allot

Allow positional arguments for pytest when testing

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