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

wsrep reporting not working #6417

Closed
mrcheeky123 opened this issue Sep 18, 2019 · 6 comments · Fixed by #15063
Closed

wsrep reporting not working #6417

mrcheeky123 opened this issue Sep 18, 2019 · 6 comments · Fixed by #15063
Assignees
Labels
area/mysql bug unexpected problem or unintended behavior

Comments

@mrcheeky123
Copy link

mrcheeky123 commented Sep 18, 2019

wsrep_ready is 'ON' however status=0, when it should be 1 I believe.


[] [root@hostname telegraf.d]# curl -s localhost:9126/metrics|grep -v \#|grep wsrep_ready
mysql_wsrep_ready{host="host.skybet.net",server="127.0.0.1:3306"} 0

[] [root@hostname telegraf.d]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7640808
Server version: 5.7.26-29-57-log Percona XtraDB Cluster (GPL), Release rel29, Revision 03540a3, WSREP version 31.37, wsrep_31.37

Copyright (c) 2009-2019 Percona LLC and/or its affiliates
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

hostname:[(none)]>select * from performance_schema.global_status where variable_name  like 'wsrep_ready';
+---------------+----------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+---------------+----------------+
| wsrep_ready   | ON             |
+---------------+----------------+
1 row in set (0.00 sec)
@glinton
Copy link
Contributor

glinton commented Sep 18, 2019

What was the reason for closing #6416 and opening this as a duplicate?

@danielnelson
Copy link
Contributor

@mrcheeky123 Can you share your plugin configuration and Telegraf version?

@danielnelson danielnelson added area/mysql bug unexpected problem or unintended behavior labels Sep 18, 2019
@ADovgalyuk
Copy link

Looks like I have similiar situation.

[root@in_monitoring maria]# rpm -qa | grep "Maria\|galera"
MariaDB-common-10.4.8-1.el7.centos.x86_64
MariaDB-backup-10.4.8-1.el7.centos.x86_64
MariaDB-compat-10.4.8-1.el7.centos.x86_64
galera-4-26.4.2-1.rhel7.el7.centos.x86_64
MariaDB-server-10.4.8-1.el7.centos.x86_64
MariaDB-client-10.4.8-1.el7.centos.x86_64


[root@in_monitoring telegraf.d]# telegraf --config mysql.conf --test | grep wsrep_ready
2019-10-23T13:27:23Z I! Starting Telegraf 1.12.2
 mysql,host=in_monitoring,server=192.168.126.251:3306 wsrep_provider_version=0i,wsrep_ready=0i,wsrep_rollbacker_thread_count=1i,wsrep_thread_count=2i 1571837243000000000

[root@in_monitoring telegraf.d]# mysql -uroot -p

 -e "SHOW GLOBAL STATUS LIKE 'wsrep_ready'"
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wsrep_ready   | ON    |
+---------------+-------+

mysql.conf attached - it's pretty standart.
mysql.txt

@sspaink sspaink added the waiting for response waiting for response from contributor label Mar 22, 2022
@sspaink
Copy link
Contributor

sspaink commented Mar 22, 2022

@mrcheeky123 or @ADovgalyuk are you still experiencing this issue with the latest version of Telegraf?

@telegraf-tiger telegraf-tiger bot removed the waiting for response waiting for response from contributor label Mar 22, 2022
@sspaink sspaink added the waiting for response waiting for response from contributor label Mar 22, 2022
@ADovgalyuk
Copy link

Hello @sspaink
Yes, this is still relevant on Maria 10.5 and latest telegraf 1.22:
Config:

[[inputs.mysql]]
  servers = ["telegraf:telegraf@tcp(localhost:3306)/"]
  perf_events_statements_digest_text_limit  = 120
  perf_events_statements_limit              = 250
  perf_events_statements_time_limit         = 86400
  table_schema_databases                    = []

  gather_table_schema                       = true
  gather_process_list                       = true
  gather_user_statistics                    = true
  gather_info_schema_auto_inc               = true
  gather_innodb_metrics                     = true
  gather_slave_status                       = true
  gather_binary_logs                        = false
  gather_table_io_waits                     = true
  gather_table_lock_waits                   = true
  gather_index_io_waits                     = true
  gather_event_waits                        = true
  gather_file_events_stats                  = true
  gather_perf_events_statements             = true
  interval_slow                             = "30m"

Tests:

[root@ telegraf.d]# mysql -uroot -p
Server version: 10.5.10-MariaDB MariaDB Server

MariaDB [(none)]> SHOW GLOBAL STATUS LIKE 'wsrep_ready'
    -> ;
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wsrep_ready   | ON    |
+---------------+-------+
1 row in set (0.001 sec)

[root@phx2-hss-001 telegraf.d]# telegraf --test --config mysql.conf | grep wsrep_ready
2022-03-25T08:56:10Z I! Starting Telegraf 1.22.0
2022-03-25T08:56:10Z I! Loaded inputs: mysql
2022-03-25T08:56:10Z I! Loaded aggregators: 
2022-03-25T08:56:10Z I! Loaded processors: 
2022-03-25T08:56:10Z W! Outputs are not used in testing mode!
2022-03-25T08:56:10Z I! Tags enabled: host=phx2-hss-001
> mysql,Metrics_type=mysql,app=mysql,host=phx2-hss-001,server=localhost:3306 wsrep_applier_thread_count=64i,wsrep_cluster_capabilities=0i,wsrep_cluster_conf_id=75i,wsrep_cluster_size=3i,wsrep_cluster_state_uuid=0i,wsrep_cluster_status=0i,wsrep_connected=0i,wsrep_local_bf_aborts=0i,wsrep_local_index=0i,wsrep_provider_capabilities=0i,wsrep_provider_name=0i,wsrep_provider_vendor=0i,wsrep_provider_version=0i,
wsrep_ready=0i,
wsrep_rollbacker_thread_count=1i,wsrep_thread_count=65i 1648198571000000000
2022-03-25T08:56:10Z E! [inputs.mysql] Error in plugin: Error 1054: Unknown column 'status' in 'where clause'
2022-03-25T08:56:10Z E! [telegraf] Error running agent: input plugins recorded 1 errors

@telegraf-tiger telegraf-tiger bot removed the waiting for response waiting for response from contributor label Mar 25, 2022
@srebhan srebhan self-assigned this Mar 25, 2024
@srebhan
Copy link
Member

srebhan commented Mar 26, 2024

@mrcheeky123 and @ADovgalyuk can you please test the binary in PR #15063 available as soon as CI finished the tests!? Let me know if this fixes the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mysql bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants