~aluria/charm-telegraf:lp1775062

Last commit made on 2018-06-06
Get this branch:
git clone -b lp1775062 https://git.launchpad.net/~aluria/charm-telegraf
Only Alvaro Uria can upload to this branch. If you are Alvaro Uria please log in for upload directions.

Branch merges

Branch information

Name:
lp1775062
Repository:
lp:~aluria/charm-telegraf

Recent commits

cf03891... by Thomas Cuthbert

Added netifaces package to test_requirements

9081567... by Alvaro Uria

LP#1775062 Fix regression at 2920829

  get_remote_unit_name could return an incorrect principal unit name.

  Use JUJU_PRINCIPAL_NAME juju env var to determine the unit telegraf
  is related to.

  If such env var is not available, check if private-address is part of
  the units' IPv4/IPv6 addresses.

  It is not likely to have smooshed telegraf units on the same scope
  (ie. container) as open-port would fail

c6193e2... by David Lawson

Add bionic support.

Reviewed-on: https://code.launchpad.net/~deej/telegraf-charm/+git/bionic/+merge/344492
Reviewed-by: Tom Haddon <email address hidden>

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