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

MariaDB user statistics are different from Percona version #2910

Closed
akrus opened this issue Jun 12, 2017 · 11 comments
Closed

MariaDB user statistics are different from Percona version #2910

akrus opened this issue Jun 12, 2017 · 11 comments
Assignees
Labels
area/mysql bug unexpected problem or unintended behavior
Milestone

Comments

@akrus
Copy link

akrus commented Jun 12, 2017

Bug report

System info:

Telegraf 1.3.1, MariaDB 10.1.24

Steps to reproduce:

  1. Configure Telegraf with MySQL input plugin
  2. Turn on gather_user_statistics in Telegraf and userstat in MariaDB

Expected behavior:

Information should be collected.

Actual behavior:

Error in logs:
Jun 12 14:43:10 db1 telegraf[14838]: 2017-06-12T13:43:10Z E! MySQL Error gathering user stats: Error 1054: Unknown column 'rows_fetched' in 'field list'
Jun 12 14:43:10 db1 telegraf[14838]: 2017-06-12T13:43:10Z E! Error in plugin [inputs.mysql]: sql: expected 26 destination arguments in Scan, not 23

Additional info:

            USER: stats
      TOTAL_CONNECTIONS: 83
 CONCURRENT_CONNECTIONS: 0
         CONNECTED_TIME: 55
              BUSY_TIME: 1.2070639999999992
               CPU_TIME: 1.1825710000000003
         BYTES_RECEIVED: 82791
             BYTES_SENT: 1655069
   BINLOG_BYTES_WRITTEN: 0
              ROWS_READ: 0
              ROWS_SENT: 2264
           ROWS_DELETED: 0
          ROWS_INSERTED: 0
           ROWS_UPDATED: 0
        SELECT_COMMANDS: 443
        UPDATE_COMMANDS: 0
         OTHER_COMMANDS: 0
    COMMIT_TRANSACTIONS: 0
  ROLLBACK_TRANSACTIONS: 0
     DENIED_CONNECTIONS: 27
       LOST_CONNECTIONS: 0
          ACCESS_DENIED: 6
          EMPTY_QUERIES: 117
  TOTAL_SSL_CONNECTIONS: 0
   MAX_STATEMENT_TIME_EXCEEDED: 0
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Jun 12, 2017
@danielnelson
Copy link
Contributor

@gioxchopper Do you know what version of the database you used when you wrote this?

@rashidmahmood
Copy link

rashidmahmood commented Aug 31, 2017

I am struggling with the same issue, any idea how to resolve it ?

@danielnelson
Copy link
Contributor

We probably should have a fallback query: optimistically try with the existing percona query and if it fails then try a mysql specific one.

@thekoma
Copy link

thekoma commented Oct 20, 2017

I'm having this problem too, i cannot monitor any of my mariadb servers sadly.

@etiennecarriere
Copy link

I had this issue too so I propose a PR with a logic based on @danielnelson proposal

@rmacian
Copy link

rmacian commented Sep 27, 2018

I am in 1.8.0 and still the same error occurs

@danielnelson
Copy link
Contributor

@rmacian What version of MariaDB?

@rmacian
Copy link

rmacian commented Sep 28, 2018

@danielnelson is version 5.5.52

@danielnelson
Copy link
Contributor

Can you open it as a new issue?

@rdxmb
Copy link
Contributor

rdxmb commented Feb 12, 2019

something similar: #5418

yabberyabber added a commit to aristanetworks/telegraf that referenced this issue Jun 26, 2019
This solves issue with collecting user stats from mariadb 10

See influxdata#2910 (Note - the
person claiming 1.8 didn't work for them is using mariadb 5... we are
using mariadb 10 which is explicitly handled in the new plugin)
yabberyabber added a commit to aristanetworks/telegraf that referenced this issue Jun 27, 2019
This solves issue with collecting user stats from mariadb 10

See influxdata#2910 (Note - the
person claiming 1.8 didn't work for them is using mariadb 5... we are
using mariadb 10 which is explicitly handled in the new plugin)
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

No branches or pull requests

9 participants