Skip to content

Commit

Permalink
Better clickhouse-report
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Apr 13, 2018
1 parent 3d38e5e commit 8a612c8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utils/report/clickhouse-report
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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

0 comments on commit 8a612c8

Please sign in to comment.