A method for acquiring Mysql database monitoring data by using Python language
A technology of monitoring data and language collection, which is applied in hardware monitoring and other directions, and can solve problems such as data having no practical significance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0014] Such as figure 1 As shown, the Mysql monitoring data collection process of the present invention is as follows:
[0015] (1) Obtain the machine name of the host through Python's socket.gethostname() method;
[0016] (2) Put the connection information of multiple Mysql databases into a string array;
[0017] (3) Use the loop function, call the MySQLdb module of Python to connect to each Mysql database, and call the sql statement: SHOW GLOBAL STATUS query the various indicators of the database, and put it into a Python dictionary;
[0018] (4) Obtain the monitoring indicators of Mysql, and extract the values of several important monitoring data that need to be collected, including the following indicators:
[0019] MySQL_QPS (query rate per second);
[0020] MySQL_TPS (system throughput);
[0021] Slow_queries (slow queries / sec);
[0022] Threads_created (the total number of connections created);
[0023] Threads_running (the number of running connections);
[0024] Aborted_connects ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com