mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
c66228a746
* Log query id in executeQuery; Better type mismatch error; change format in report tool * Better log query_id * fix message * Use c++11 thread_local instaed of gcc's __thread * lock mutex before notifying waiting thread in sync insertion into distributed [#CLICKHOUSE-3379] * Cmake: fix build without downloaded submodules (#1379) * fix
23 lines
1.2 KiB
Bash
Executable File
23 lines
1.2 KiB
Bash
Executable File
#!/bin/sh -x
|
|
# Usages:
|
|
# ./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'
|
|
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'
|
|
clickhouse --client -q 'SELECT * FROM system.dictionaries FORMAT PrettyCompactNoEscapes'
|
|
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
|
|
cat /etc/lsb-release
|
|
uname -a
|