charm-prometheus2:candidate/21.07

Last commit made on 2021-07-20
Get this branch:
git clone -b candidate/21.07 https://git.launchpad.net/charm-prometheus2
Members of Llama (LMA) Charmers can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
candidate/21.07
Repository:
lp:charm-prometheus2

Recent commits

d7cbd9c... by Xav Paice

Pin python requests to support Python 3.5

In order to maintain Xenial support, we must use a version of requests
that still works with Python 3.5.

Resolves LP:#1936895

6867099... by Joe Guo

install sensible-mda deb package

when prometheus needs to send email, it will call /usr/sbin/sensible-mda
and if this package is not installed, massive error log will be
generated to use out disk space.

LP: #1904019

Signed-off-by: Joe Guo <email address hidden>

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>