Commit Graph

44 Commits (9c6945fae86d1ceb474d89b8e5b0b5f53ea6c5f2)

Author SHA1 Message Date
René Cannaò 9c6945fae8
Merge branch 'v3.0' into v3.0-tsdb-feature
1 week ago
Rene Cannao ef397f9f1d Fix TSDB variable patterns and backend monitor runtime source
1 week ago
Rene Cannao 2a46c239be Add PostgreSQL advanced eventslog schema and variable scaffolding
1 week ago
Rene Cannao 4882559239 Cleanup: Uncomment delete statsdb_disk in ProxySQL_Statistics destructor
1 week ago
Rene Cannao 700459f67b tsdb: address AI code review feedback, fix memory safety and logic bugs
1 week ago
Rene Cannao b8c6b4f573 tsdb: address code review comments and improve stability
1 week ago
Rene Cannao a09db8318c tsdb: fix SET command validation by adding tsdb- prefix support
1 week ago
Rene Cannao 2d51aeff64 tsdb: correctly implement SHOW TSDB commands and variable initialization
1 week ago
Rene Cannao 6404d7b365 tsdb: implement SHOW TSDB VARIABLES and SHOW TSDB STATUS
1 week ago
Rene Cannao a236a13787 tsdb: dedicated module for TSDB variables with tsdb- prefix and optimized background tasks
1 week ago
Rene Cannao da877c378b tsdb: align admin variable lifecycle, full prometheus ingestion, docs and tap coverage
1 week ago
Rene Cannao f17e999830 Implement SQLite-based TSDB subsystem
1 week ago
René Cannaò 2551d350e9 Port to 3.0 of in-memory query logging
12 months ago
René Cannaò 91cb002f5a Fix issue #60
1 year ago
Rene Cannao c38732ab86 Fix bug #42
2 years ago
Rahim Kanji ebf20b6a60 * Added PostgreSQL configuration (port: 6034 Admin and 6035: PostgreSQL client connections)
2 years ago
René Cannaò d4d2298a6f Debug logging to disk
3 years ago
René Cannaò 52842f6056 Build on MacOS
4 years ago
Javier Jaramago Fernández 4cd0774549 Fix 'int' overflow when computing 'next_timer_mysql_query_digest_to_disk' #3873
4 years ago
Jared Jetsel 962116f1b6 Fixed typo, memory leak, and documentation.
4 years ago
Jared Jetsel 910a626652 Fixed error messages
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 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ò 194243503a Adding LCOV_EXCL_START around assert(0)
5 years ago
Rene Cannao 41b173a83c Fixing a lot of compiler warnings
6 years ago
René Cannaò 2bbd84d2c9 Support for SQLite3 plugin
6 years ago
René Cannaò b1306a28b3 Extending Statistics, only for new Web UI
6 years ago
René Cannaò 80e92b144d [WIP] Second commit for mysql firewall whitelist
6 years ago
René Cannaò 00ee4eb0ae Add dump_time to history_mysql_query_digest #2368
6 years ago
Valentin Rakush 299bc3ca7a Fix mem leak caused by duplicate code
6 years ago
René Cannaò 6bed334db1 stats_history.history_mysql_query_digest #2368
6 years ago
Valentin Rakush 440851ec6b Update all assertions to check SQLITE_OK
6 years ago
René Cannaò 6dab42bf3a Fix related to #1431 specific to version 2.0
8 years ago
René Cannaò 380523d392 Several fixed to graceful shutdown if proxysql_stats.db is not writable #1431
8 years ago
René Cannaò c3040acc74 Export metrics from MyHGM ConnPoll in Web interface
8 years ago
René Cannaò f3794c81a5 Add DEFAULT 0 for stats tables
8 years ago
René Cannaò 35ee631844 Further improvement for handling GTID
8 years ago
Nick Vyzas c9b13ca84c Layout changes and HTML fix
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