Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql plugin fails all servers if one fails #1443

Closed
phemmer opened this issue Jul 3, 2016 · 0 comments · Fixed by #1519
Closed

mysql plugin fails all servers if one fails #1443

phemmer opened this issue Jul 3, 2016 · 0 comments · Fixed by #1519

Comments

@phemmer
Copy link
Contributor

phemmer commented Jul 3, 2016

Bug report

Relevant telegraf.conf:

[[inputs.mysql]]
    servers = [ "root@tcp(127.0.0.1:3305)/", "root@tcp(127.0.0.1:3306)/" ]

System info:

telegraf 1.0.0 beta 2 commit c046232

Steps to reproduce:

telegraf -config telegraf.conf -test

Expected behavior:

* Plugin: mysql, Collection 1
2016/07/03 14:38:37 dial tcp 127.0.0.1:3305: getsockopt: connection refused
> mysql,host=whistler,server=127.0.0.1:3306 aborted_clients=0i,aborted_connects=1i,bytes_received=179i,bytes_sent=321i,commands_admin_commands=0i,commands_alter_db=0i,commands_alter_db_upgrade=0i,commands_alter_event=0i,commands_alter_function=0i,commands_alter_instance=0i,commands_alter_procedure=0i,commands_alter_server=0i,commands_alter_table=0i,commands_alter_tablespace=0i,commands_alter_user=0i,commands_analyze=0i,commands_assign_to_keycache=0i,commands_begin=0i,commands_binlog=0i,commands_call_procedure=0i 1467571098000000000
> mysql,host=whistler,server=127.0.0.1:3306 commands_change_db=0i,commands_change_master=0i,commands_change_repl_filter=0i,commands_check=0i,commands_checksum=0i,commands_commit=0i,commands_create_db=0i,commands_create_event=0i,commands_create_function=0i,commands_create_index=0i,commands_create_procedure=0i,commands_create_server=0i,commands_create_table=0i,commands_create_trigger=0i,commands_create_udf=0i,commands_create_user=0i,commands_create_view=0i,commands_dealloc_sql=0i,commands_delete=0i,commands_delete_multi=0i 1467571098000000000
...

^ plugin should print error to STDERR, and then continue with the next server.

Actual behavior:

* Plugin: mysql, Collection 1
2016/07/03 14:38:37 dial tcp 127.0.0.1:3305: getsockopt: connection refused
sparrc added a commit that referenced this issue Jul 19, 2016
closes #1439
closes #1440
closes #1441
closes #1442
closes #1443
closes #1444
closes #1445
sparrc added a commit that referenced this issue Jul 19, 2016
closes #1439
closes #1440
closes #1441
closes #1442
closes #1443
closes #1444
closes #1445
sparrc added a commit that referenced this issue Jul 19, 2016
closes #1439
closes #1440
closes #1441
closes #1442
closes #1443
closes #1444
closes #1445
sparrc added a commit that referenced this issue Jul 19, 2016
closes #1439
closes #1440
closes #1441
closes #1442
closes #1443
closes #1444
closes #1445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant