~aluria/charm-telegraf:remote-unit-name

Last commit made on 2018-01-31
Get this branch:
git clone -b remote-unit-name 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:
remote-unit-name
Repository:
lp:~aluria/charm-telegraf

Recent commits

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

a9d5730... by Richard Harding

Update to Juju 2.3 network_get methods

b3fffd4... by Stuart Bishop

New icon per lp:1707199

3e9ba6c... by Barry Price

[paulgear,r=barryprice] Ensure telegraf service is enabled after it is configured

a9e58ee... by Paul Gear

Ensure telegraf service is enabled after it is configured

Fixes https://bugs.launchpad.net/telegraf-charm/+bug/1659375

25a8e99... by Stuart Bishop

[ajkavanagh] Add network space support to the prometheus-client interface

e56ea1e... by Stuart Bishop

Cast postgresql_bytes_lag to integer

Some versions of Telegraf get confused with a 'numeric' datatype
from PostgreSQL, so cast it to an integer.