2017-05-04 04:09:33 +00:00
|
|
|
#!/bin/sh -x
|
|
|
|
# Usages:
|
2017-12-25 17:16:56 +00:00
|
|
|
# sh clickhouse_report.sh > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1
|
2017-05-04 04:09:33 +00:00
|
|
|
# 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
|
|
|
|
|
2017-10-23 17:32:39 +00:00
|
|
|
clickhouse --client -q 'SELECT * FROM system.events FORMAT PrettyCompactNoEscapes'
|
|
|
|
clickhouse --client -q 'SELECT * FROM system.metrics FORMAT PrettyCompactNoEscapes'
|
|
|
|
clickhouse --client -q 'SELECT * FROM system.asynchronous_metrics FORMAT PrettyCompactNoEscapes'
|
|
|
|
clickhouse --client -q 'SELECT * FROM system.build_options FORMAT PrettyCompactNoEscapes'
|
|
|
|
clickhouse --client -q 'SELECT * FROM system.processes FORMAT PrettyCompactNoEscapes'
|
|
|
|
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'
|
2017-12-25 17:16:56 +00:00
|
|
|
clickhouse --client -q 'SELECT * FROM system.replicas FORMAT PrettyCompactNoEscapes'
|
2017-10-23 17:32:39 +00:00
|
|
|
clickhouse --client -q 'SELECT * FROM system.dictionaries FORMAT PrettyCompactNoEscapes'
|
2017-05-04 04:09:33 +00:00
|
|
|
ps auxw
|
|
|
|
df -h
|
|
|
|
top -bn1
|
|
|
|
tail -n200 /var/log/clickhouse-server/clickhouse-server.err.log
|
|
|
|
tail -n200 /var/log/clickhouse-server/clickhouse-server.log
|
|
|
|
tail -n100 /var/log/clickhouse-server/stderr
|
2017-10-10 17:55:35 +00:00
|
|
|
cat /etc/lsb-release
|
|
|
|
uname -a
|