* WIP: flamegraphs
* Get flame graphs generating
* Add files to bin
* Crude frontend for analyzing
* Hack: Use a stable clickhouse host instead of conn pool for flamegraphs
Otherwise no way to get back measurements due to LB.
* Error handling
* Only allow read queries
* Hide query analyze button for non-owners
* Make sure non-admins can't run queries
* Fix query issue
* Allow getting table schema from clickhouse
This will be useful constructing free-form lists for /instance/status
page
* Show PostgreSQL queries in system status page
* Show table with currently running queries
* Show slow queries from the past 6 hours
* Make collapsible sections optional
This way this page even works for non-clickhouse users
* Remove debug code
* Remove more cols from slow log, handle lists
* Extract const
* Show clickhouse disk and system.stats on /instance/status
Part of https://github.com/PostHog/vpc/issues/45
* Show stats on clickhouse table sizes, remove postgres table size stats
* Add metric for whether clickhouse is alive
* Move clickhouse stats above redis