~aluria/charm-prometheus-blackbox-exporter-peer:rewrite-move-complexity

Last commit made on 2019-10-24
Get this branch:
git clone -b rewrite-move-complexity https://git.launchpad.net/~aluria/charm-prometheus-blackbox-exporter-peer
Only Alvaro Uria can upload to this branch. If you are Alvaro Uria please log in for upload directions.

Branch merges

Branch information

Name:
rewrite-move-complexity
Repository:
lp:~aluria/charm-prometheus-blackbox-exporter-peer

Recent commits

bf9bd8b... by Alvaro Uria

Improve lib_network unit test

cce865f... by Alvaro Uria

Fixes per initial review

8633d54... by Alvaro Uria

Update unit tests

ca94a30... by Alvaro Uria

Rewrite the blackbox-exporter relation

 * Each unit exposes its available networks with the blackbox-exporter
 remote units (juju config updates the relation info)
 * lib_network uses psutil everywhere instead of a mix of psutil and
 netifaces (ipaddress module is still used for validation)
 * module for "icmp_jump" added to the default config

1901aed... by Alvaro Uria

Rename p-bb-peer-exporter to p-bb-exporter-peer

371fd4b... by Alvaro Uria

Rewrite charm using template-python-pytest

 * Cloned template-python-pytest
 * Moved the reactive script helpers to lib_bb_peer_exporter (generic)
 and lib_network (network related helpers)
 * Created minimum unit (for the libs) and functional tests
 * wheelhouse.txt installs psutil as well as netifaces and pyroute2.
 * Linting now runs flake8-docstrings, flake8-import-order and other
 extra checks. All scripts have been updated following parser
 recommendations.
 * Better use of the peer-discovery interface. Available (and transient)
 states when units join or leave a peer relation are used to trigger
 config changes.

a458c6a... by Andrea Ieri

Noop readability refactor

881b419... by Andrea Ieri

Lookup source ips for all probes and provide the address over the relation

64d1422... by Andrea Ieri

Filter out uninteresting IPs and interfaces

413057f... by Andrea Ieri

Publish the external IP in case we're running cross-model relations