From 8a612c8e939a9ca200a857ffca58d90e56115e21 Mon Sep 17 00:00:00 2001 From: proller Date: Fri, 13 Apr 2018 15:34:14 +0300 Subject: [PATCH] Better clickhouse-report --- utils/report/clickhouse-report | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/report/clickhouse-report b/utils/report/clickhouse-report index 8c1d923d39f..3fba0bbc6e7 100755 --- a/utils/report/clickhouse-report +++ b/utils/report/clickhouse-report @@ -5,7 +5,7 @@ # Also dump some system info (can contain some private data) and get trace from running clickhouse-server process # sh -x clickhouse-report system gdb > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1 -# curl https://raw.githubusercontent.com/yandex/ClickHouse/master/utils/report/clickhouse-report system gdb | sh -x > 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 -s -x system gdb > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1 for i in "$@" ; do @@ -25,6 +25,10 @@ for i in "$@" ; do esac done +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 + 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' @@ -35,6 +39,3 @@ 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' -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