Comment 0 for bug 1775062

Revision history for this message
Shane Peters (shaner) wrote :

When using the mysql:dbadmin interface to have telegraf poll mysql-specific metrics, the hostname across other telegraf subordinates changes to 'mysql/x'.

The issue lies in get_remote_unit_name which returns the unit_name for the first relation found, without confirming it's for that specific unit.

This is due to the removal of a test which used the IP address determine the correct unit.
https://git.launchpad.net/telegraf-charm/commit/?id=2920829b8dc4671c0685c86d575a639833ec699c