~stephanpampel/charm-prometheus2:stable/20.08

Last commit made on 2020-08-13
Get this branch:
git clone -b stable/20.08 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/20.08
Repository:
lp:~stephanpampel/charm-prometheus2

Recent commits

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"

afe7074... by Peter Sabaini

Add static labels for hostnames

Add labels for every target with the DNS hostname. This allows
user-friendly display of hostnames for exporters that otherwise do not
expose hostnames (e.g. libvirt-exporter)

4e16e3c... by Xav Paice

Merge branch 'bug/1867180'

Manual merge of https://code.launchpad.net/~peter-sabaini/charm-prometheus2/+git/charm-prometheus2/+merge/382496

848846c... by Xav Paice

Make rules_wait_time configurable

Addressing review comments, add config item for the wait_time for
generic rules.

Additionally fix a missing conditional to trigger rules generation when
generic_rules_tmpl is updated.

ae71585... by Xav Paice

add basic generic rules for all targets

Adds a single up == 0 rule for alerting if a target is down.

Fixes-bug LP:#1870473

dae58ed... by Xav Paice

Change os.getlogin() to os.geteuid()

When using os.getlogin() without a terminal (i.e. during hook execution)
an error is returned rather than a value. Additionally, os.getlogin()
returns the terminal user, rather than the user of the process itself
which is what is needed.

Fixes LP: #1877909

12ee9ef... by Alvaro Uria

Merge branch 'xavpaice/dedupe_relation_rules'

Reviewed-on: https://code.launchpad.net/~xavpaice/charm-prometheus2/+git/prometheus2-charm/+merge/381554
Reviewed-by: Alvaro Uria <email address hidden>
Reviewed-by: Wouter van Bommel <email address hidden>
Signed-off-by: Alvaro Uria <email address hidden>