~stephanpampel/charm-prometheus2:stable/21.01

Last commit made on 2020-10-16
Get this branch:
git clone -b stable/21.01 https://git.launchpad.net/~stephanpampel/charm-prometheus2
Only Stephan Pampel can upload to this branch. If you are Stephan Pampel please log in for upload directions.

Branch merges

Branch information

Name:
stable/21.01
Repository:
lp:~stephanpampel/charm-prometheus2

Recent commits

1061146... by Alvaro Uria

Merge remote-tracking branch 'drew/lint-20.10'

Reviewed-on: https://code.launchpad.net/~afreiberger/charm-prometheus2/+git/charm-prometheus2/+merge/392301
Reviewed-by: Alvaro Uria <email address hidden>

7b2d1a5... by Drew Freiberger

Import order linting

ed9cebd... by Andrea Ieri

Make the linter happy

fea9b74... by Edin S

Reformat to conform to lint standards

033140c... by Edin S

Use simpler pkill to identify Prometheus processes to restart

798b492... by Edin S

Properly reload all Prometheus processes. Fixes LP#1891942.

This solution is very similar to that which was *removed* in
30e80. The removed solution did not identify and reload all Prometheus
processes. As per the official Prometheus documentation SIGHUP can be
used to reload Prometheus:
https://prometheus.io/docs/prometheus/latest/configuration/configuration/

An alternative solution was considered where Prometheus would be
reloaded using the HTTP API. This solution was not implemented because
it had additional security implications that needed to be considered.

ae30894... by Alvaro Uria

Update license, charm proof built code

e0ab4a8... by Alvaro Uria

Refactor charm structure (src, Makefile, tox)

 * Charm code has been relocated to the "src/" folder
 * Makefile and tox.ini have been standardized, in alignment to other
 LMA stack projects
 * Linting and unit tests execution fixed after previous changes

Reviewed-on: https://code.launchpad.net/~peppepetra86/charm-prometheus2/+git/charm-prometheus2/+merge/388472
Reviewed-by: Alvaro Uria <email address hidden>

30e80dd... by Drew Freiberger

Fixing how prometheus services are restarted

New prometheus versions the service can no longer be
restared with: killall -HUP prometheus, now using the
/-/reload endpoint to gracefully re-read the config file

Also fixed lint errors

123a233... by Peter Sabaini

Return ipaddr on dns faults instead of "unknown-host"