From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../templates/server/status/monitor/index.twig | 268 +++++++++++++++++++++ 1 file changed, 268 insertions(+) create mode 100644 srcs/phpmyadmin/templates/server/status/monitor/index.twig (limited to 'srcs/phpmyadmin/templates/server/status/monitor/index.twig') diff --git a/srcs/phpmyadmin/templates/server/status/monitor/index.twig b/srcs/phpmyadmin/templates/server/status/monitor/index.twig new file mode 100644 index 0000000..c4c7277 --- /dev/null +++ b/srcs/phpmyadmin/templates/server/status/monitor/index.twig @@ -0,0 +1,268 @@ +{% extends 'server/status/base.twig' %} +{% set active = 'monitor' %} +{% block content %} + + + +
+ + {{ get_image('b_chart') }} + {% trans 'Add chart' %} + + + {{ get_image('b_tblops') }} + {% trans 'Enable charts dragging' %} + +
+ +
+ {% trans 'Refresh rate' %} +
+ +
+
+ +
+ {% trans 'Chart columns' %} +
+ +
+ +
+ {% trans 'Chart arrangement' %} + {{ show_hint('The arrangement of the charts is stored to the browsers local storage. You may want to export it if you have a complicated set up.'|trans) }} +
+ + {% trans 'Import' %} + - + + {% trans 'Export' %} + - + + {% trans 'Reset to default' %} + +
+
+ +
+

+ {% trans %} + The phpMyAdmin Monitor can assist you in optimizing the server configuration and track down time intensive queries. For the latter you will need to set log_output to 'TABLE' and have either the slow_query_log or general_log enabled. Note however, that the general_log produces a lot of data and increases server load by up to 15%. + {% endtrans %} +

+ {% trans 'Loading…' %} + +
+
+ +
+

{% trans 'Using the monitor:' %}

+

+ {% trans %} + Your browser will refresh all displayed charts in a regular interval. You may add charts and change the refresh rate under 'Settings', or remove any chart using the cog icon on each respective chart. + {% endtrans %} +

+

+ {% trans %} + To display queries from the logs, select the relevant time span on any chart by holding down the left mouse button and panning over the chart. Once confirmed, this will load a table of grouped queries, there you may click on any occurring SELECT statements to further analyze them. + {% endtrans %} +

+

+ {{ get_image('s_attention') }} + {% trans 'Please note:' %} +

+

+ {% trans %} + Enabling the general_log may increase the server load by 5-15%. Also be aware that generating statistics from the logs is a load intensive task, so it is advisable to select only a small time span and to disable the general_log and empty its table once monitoring is not required any more. + {% endtrans %} +

+
+
+ +
+
+

+ +

+ + + + +
+ + + +
+ +
+ +
+ +
+ + + +
+ + + +
+ + + + + + + ({% trans 'KiB' %}, + {% trans 'MiB' %}) + +
+ + + + + + + +

+ + {% trans 'Add this series' %} + + + | {% trans 'Clear series' %} + +

+ + {% trans 'Series in chart:' %} +
+ + {% trans 'None' %} + +
+
+
+ +
+

+ {% trans 'Selected time range:' %} + + - + +

+ + + +
+ + + + +

+ {% trans 'Choose from which log you want the statistics to be generated from.' %} +

+

+ {% trans 'Results are grouped by query text.' %} +

+
+ +
+ +
+
+
+ +
+

+ + + +
+ {% for name, value in form %} + + {% endfor %} +
+ +
+ {{ show_mysql_docu('general-thread-states') }} +
+ +
+ {{ show_mysql_docu('explain-output') }} +
+ +{% endblock %} -- cgit