Add system.replicas dum to utils/report/clickhouse_report.sh

This commit is contained in:
proller 2017-12-25 20:16:56 +03:00
parent fb7047bfe8
commit eb677a33e6

View File

@ -1,6 +1,6 @@
#!/bin/sh -x
# Usages:
# ./clickhouse_report.sh > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1
# sh clickhouse_report.sh > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1
# curl https://raw.githubusercontent.com/yandex/ClickHouse/master/utils/report/clickhouse_report.sh | sh > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1
clickhouse --client -q 'SELECT * FROM system.events FORMAT PrettyCompactNoEscapes'
@ -11,6 +11,7 @@ clickhouse --client -q 'SELECT * FROM system.processes FORMAT PrettyCompactNoEsc
clickhouse --client -q 'SELECT * FROM system.merges FORMAT PrettyCompactNoEscapes'
clickhouse --client -q 'SELECT * FROM system.parts FORMAT PrettyCompactNoEscapes'
clickhouse --client -q 'SELECT * FROM system.replication_queue FORMAT PrettyCompactNoEscapes'
clickhouse --client -q 'SELECT * FROM system.replicas FORMAT PrettyCompactNoEscapes'
clickhouse --client -q 'SELECT * FROM system.dictionaries FORMAT PrettyCompactNoEscapes'
ps auxw
df -h