~deej/charm-telegraf/+git/bionic:master

Last commit made on 2018-04-26
Get this branch:
git clone -b master https://git.launchpad.net/~deej/charm-telegraf/+git/bionic
Only David Lawson can upload to this branch. If you are David Lawson please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~deej/charm-telegraf/+git/bionic

Recent commits

b3916ad... by David Lawson

Merge branch 'master' of https://git.launchpad.net/telegraf-charm

17b1e42... by David Lawson

Add bionic support

5cb41a2... by Stuart Bishop

Stop accessing non-existant attribute on postgresql endpoint

9bdf897... by Alvaro Uria

Merge remote-tracking branch 'aluria/remote-unit-name'

3695792... by Xav Paice

Updates to alerting rules, fix review comments

5d5c35d... by Xav Paice

Add alerting rules export to Prometheus

This adds use of
https://github.com/CanonicalBootStack/interface-prometheus-rules to
provide some base alerting rules for Prometheus.

2920829... by Alvaro Uria

Remove extrachecks to return principal's unitname

  get_remote_unit_name verified private_ip matching between principal
  unit and telegraf itself. However, this might break in a multi-NIC
  environment and there's no real need to run such check since telegraf
  is a subordinate.

  Possible cases:
  1) Charms that can have more than one relation with telegraf (mysql,
  pgsql, mongodb, etc. see the "requires" section of metadata.yaml).
  Telegraf can run specific plugins + juju-info rel
  Result: No more than a single telegraf unit becomes subordinate, so
  rel['__unit__'] would return the same value for any relation

  2) 2 charms living in the same container/metal, and related to
  telegraf
  Result: Each principal unit, using a diff charm each, will have its
  own relation with telegraf (2 telegraf units will live in the node).
  Each unit will return a different rel['__unit__'], as they have
  different principal units

  3) 1 charm living in a container/metal, and related to telegraf
  Result: telegraf has a single "requires" relation and will return
  rel['__unit__'] of its principal

9512ea7... by Haw Loeung

[rharding] Add support for using network-get to send correct IP address across the relation.

abbc1d6... by James Hebden

Fixed get_remote_unit_name with network spaces

When relating units with telegraf, the get_remote_unit_name function is
verifies the remote unit name by checking that the private-ip address in
the relation data matches the private IP address of the unit.

This breaks when using a network space with a unit IP address that is
not the juju-calculated private-ip address for the unit, which is kind
of the point of being able to specify an alternate network space.

This commit fixes this when using network spaces by using the unit's IP
address in the provided network space if available, falling back to the
unit's private address if a space is not configured/available (for
example, in juju 1.25 environments)

b621eee... by Richard Harding

Update to use the relation context to grab the correct address