@@ -84,11 +84,20 @@ Activity:
8484- Queries that is being processed. Ordered by memory usage.
8585
8686
87+ #### [ scripts/clickhouse_information_metrics.sh] ( #clickhouse_information_metrics ) . Information script ClickHouse about metrics and events.
88+
89+ Additional information about metrics and events:
90+ - System metrics;
91+ - Asynchronous metrics;
92+ - System events.
93+
94+
8795#### Small scripts to manage ClickHouse and Apache ZooKeeper:
8896- [ scripts/clickhouse_start.sh] ( #clickhouse_start ) . Start ClickHouse systemctl service, confirmation is required.
8997- [ scripts/clickhouse_stop.sh] ( #clickhouse_stop ) . Stop ClickHouse systemctl service, confirmation is required.
9098- [ scripts/clickhouse_status.sh] ( #clickhouse_status ) . ClickHouse status. Additionally, ClickHouse processes and network connection are displayed.
9199- [ scripts/clickhouse_logs.sh] ( #clickhouse_logs ) . Shows the ClickHouse log file with auto-update.
100+ - [ scripts/clickhouse_client.sh] ( #clickhouse_client ) . Launching clickhouse-client with current settings from ** settings.txt** file.
92101
93102- [ scripts/zookeeper_start.sh] ( #zookeeper_start ) . Start Apache ZooKeeper systemctl service, confirmation is required.
94103- [ scripts/zookeeper_stop.sh] ( #zookeeper_stop ) . Stop Apache ZooKeeper systemctl service, confirmation is required.
@@ -100,19 +109,29 @@ Activity:
100109
101110As user ** root** , download the latest version of the scripts collection (see [ Releases] ( https://github.com/Azmodey/ch_dba_scripts/releases ) page):
102111```
103- # wget https://github.com/Azmodey/ch_dba_scripts/archive/1.2 .0.tar.gz
112+ # wget https://github.com/Azmodey/ch_dba_scripts/archive/1.3 .0.tar.gz
104113```
105114
106115Extract script files to separate directory (for example ** ~ scripts/** ) and grant the necessary execution rights:
107116```
108- # tar xvzf 1.2 .0.tar.gz
109- # mv ch_dba_scripts-1.2 .0/scripts ~/scripts
117+ # tar xvzf 1.3 .0.tar.gz
118+ # mv ch_dba_scripts-1.3 .0/scripts ~/scripts
110119# chmod 700 ~/scripts/*.sh
120+ $ chmod 600 ~/scripts/settings.txt
111121```
112122
113123
114124## Setup
115125
126+ Modify file ** settings.txt** . Uncomment and correct the entries for your current ClickHouse connection settings.
127+ ```
128+ CH_HOST="localhost" # Host name. Default: localhost
129+ CH_PORT="9000" # Port. Default: 9000
130+
131+ CH_LOGIN="" # Administrative user login
132+ CH_PASSWORD="" # Administrative user password
133+ ```
134+
116135If you plan to use Apache ZooKeeper cluster health monitoring, you should add this feature to the configuration file.
117136Add the following lines to your ZooKeeper config file like ** /opt/zookeeper/conf/zoo.cfg** :
118137```
@@ -238,14 +257,42 @@ General information.
238257![ clickhouse_information1] ( media/ch_information1_general.png )
239258
240259
260+ Settings.
261+
262+ ![ clickhouse_information2] ( media/ch_information2_settings.png )
263+
264+
265+ Users, roles, profiles, quotas, grants.
266+
267+ ![ clickhouse_information3] ( media/ch_information3_users.png )
268+
269+
241270Tables.
242271
243- ![ clickhouse_information2] ( media/ch_information2_tables.png )
272+ ![ clickhouse_information4] ( media/ch_information4_tables.png )
273+
274+
275+ Replication and Queries.
276+
277+ ![ clickhouse_information5] ( media/ch_information5_replica_queries.png )
244278
245279
246280System activity history and Queries that is being processed.
247281
248- ![ clickhouse_information3] ( media/ch_information3_activity.png )
282+ ![ clickhouse_information6] ( media/ch_information6_activity.png )
283+
284+
285+ ---
286+ #### clickhouse_information_metrics
287+
288+ Additional information about metrics and events:
289+ - System metrics;
290+ - Asynchronous metrics;
291+ - System events.
292+
293+ #### Examples of work:
294+
295+ ![ clickhouse_information_metrics1] ( media/ch_information_metrics.png )
249296
250297
251298---
@@ -354,6 +401,20 @@ ClickHouse log: /var/log/clickhouse-server/clickhouse-server.log
354401```
355402
356403
404+ ---
405+ ### clickhouse_client
406+
407+ Launching clickhouse-client with current settings from ** settings.txt** file.
408+
409+ ```
410+ ClickHouse client version 21.3.2.5 (official build).
411+ Connecting to localhost:9000 as user default.
412+ Connected to ClickHouse server version 21.3.2 revision 54447.
413+
414+ c7clickhouse-1.local :)
415+ ```
416+
417+
357418---
358419### zookeeper_start
359420
0 commit comments