Commit Graph

20 Commits (fa74de3cf257dfd7c14c17403928d8b785c43df6)

Author SHA1 Message Date
René Cannaò 5415591966 Fix incorrect table definition of history_mysql_query_events
11 months ago
René Cannaò 2551d350e9 Port to 3.0 of in-memory query logging
11 months ago
René Cannaò 91cb002f5a Fix issue #60
1 year ago
Rahim Kanji ebf20b6a60 * Added PostgreSQL configuration (port: 6034 Admin and 6035: PostgreSQL client connections)
2 years ago
Jared Jetsel 962116f1b6 Fixed typo, memory leak, and documentation.
4 years ago
Jared Jetsel d114dbe3a3 Const strings where appropriate and improved test for statistics
4 years ago
Jared Jetsel 0ef478e597 In debug mode, the handlers for ProxySQL_Statistics are called even if the web interface plugin is not loaded. This way the code can be tested even if the plugin is not loaded. Added new member function ProxySQL_Statistics::knows_variable_name(), which is used to check if a variable_name is in the map. This is useful to do a check before get_variable_id_for_name() in instances where it is undesirable to load or create entries in the lookup table, while keeping direct access to the map private and mutex protected. In ProxySQL_Statistics::get_variable_id_for_name, wrapped the variable_id select code in a lambda so that it could be reused instead of calling sqlite3_last_insert_rowid(), as there were some thread safety concerns which potentially could produce incorrect ids. Changed the insert to use execute() instead of execute_statement() instead, sufficient and simpler. Added error in case the function could not find, load, or generate a new id.
4 years ago
Jared Jetsel 012cf16eaa Made the new member functions public. If these are only accessible internally by this class, or by the web interface plugin, consider making private and friend class to the plugin. As the extent of their usage is not yet known to me, making them public for now. Caution on adding new lookup entries unnecessarily.
4 years ago
Jared Jetsel 1adaf74170 Modified ProxySQL_Statistics to have two new member functions and two new private members. These are used to map the string variable_name to an integer variable_id to improve scalability. See documentation about their usage. Updated the MySQL_Threads_Hander_sets_v2 function to load the variable_name_id_map if it is empty for initial load from the lookup table. The prepared statement binds was changed to use the int64 variable_id retreived from the map.
4 years ago
Jared Jetsel d644f13780 Updated the SQLite history_mysql_status_variables create table statement to use variable_id instead of name for improved scalability. Added an index for the sql_status_variables table. Added lookup table create statement for history_mysql_status_variables_lookup table to refer the variable_id integer key to the variable_name string. Inserted the new table definition and execute code for the create index that were added. As the code has not yet received public release, there is no concern of keeping the previous table definition, and so the version number refers to v2.4.0.
4 years ago
René Cannaò b1306a28b3 Extending Statistics, only for new Web UI
6 years ago
René Cannaò 00ee4eb0ae Add dump_time to history_mysql_query_digest #2368
6 years ago
René Cannaò 6bed334db1 stats_history.history_mysql_query_digest #2368
6 years ago
René Cannaò c3040acc74 Export metrics from MyHGM ConnPoll in Web interface
8 years ago
René Cannaò 35ee631844 Further improvement for handling GTID
8 years ago
René Cannaò 59c20e3929 Missing include
8 years ago
René Cannaò 8a4556676c Export query cache metrics in WebUI
8 years ago
René Cannaò 8ebc2b0f50 Add support for Darwin
8 years ago
René Cannaò 8adf68c002 Further development for web interface
8 years ago
René Cannaò 6fbd6f52ec First implementation of web interface
8 years ago