You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two mysql servers are Amazon RDS in master-slave setup. It should be reproducible outside AWS as well.
Steps to reproduce:
Monitor two mysql servers with different gtid_mode variable. One with boolean-like value and the other without.
mysql> show global variables like '%gtid_mode%';
+---------------+----------------+
| Variable_name | Value |
+---------------+----------------+
| gtid_mode | OFF_PERMISSIVE |
+---------------+----------------+
mysql> show global variables like '%gtid_mode%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| gtid_mode | OFF |
+---------------+-------+
Expected behavior:
No errors.
Actual behavior:
Nov 11 18:12:09 monitoring telegraf[8487]: 2019-11-11T18:12:09Z E! [outputs.influxdb] when writing to [https://influxdb.foo.com:8086]: received error partial write: field type conflict: input field "gtid_mode" on measurement "mysql_variables" is type string, already exists as type integer dropped=1; discarding points
Additional info:
From the MySQL doc, it seems that gtid_mode could contain four different values and should never be treated as boolean. I guess, that's where this integer is coming from.
The text was updated successfully, but these errors were encountered:
It looks like the PERMISSIVE variations may be new in MySQL 5.7. Since we are currently storing these as an boolean integer OFF = 1 and ON = 1, we could squash OFF_PERMISSIVE = 0 and ON_PERMISSIVE = 1.
Relevant telegraf.conf:
System info:
Telegraf 1.12.4
Remote mysql version: 5.7.22-log, 5.7.26-log
The two mysql servers are Amazon RDS in master-slave setup. It should be reproducible outside AWS as well.
Steps to reproduce:
Monitor two mysql servers with different
gtid_mode
variable. One with boolean-like value and the other without.Expected behavior:
No errors.
Actual behavior:
Additional info:
From the MySQL doc, it seems that
gtid_mode
could contain four different values and should never be treated as boolean. I guess, that's where this integer is coming from.The text was updated successfully, but these errors were encountered: