Cheap DIY Monitoring with OSS Analytics & Visualization
summary
Builds a VM stat collector in ~100 lines of code that pipes vmstat JSON into ClickHouse and visualizes it with Grafana so you can query raw time series with SQL, see CPU and memory traces live, and zoom into seconds. Demonstrates ingestion via curl/JSON each row, storage with MergeTree partitioned by day, compression often 90–95%, and live load tests using sysbench and stress that reveal collector gaps when the host is saturated. Plugin used has ~12M downloads and ClickHouse had 392 unique PR contributors last year.
AI-written summary · about
chapters (24)
- 0:00intro
- 1:43preamble
- 2:07about robert
- 3:21monitoring is for answering questions
- 3:55what's the best way to answer these questions?
- 4:36off-the-shelf solutions? perhaps not for you...
- 5:23let's build a monitoring system with open source
- 6:06pick an opne source analytic database
- 7:22a short list of reasons why clickhouse is popular
- 8:50clickhouse optimizes for fast response on large datasets
- 10:35and supports [many] dozens of input formats
- 11:16it also has great support for time-ordered data
- 12:30grafana pairs well with clickhouse for observability apps
- 14:00sooo... how do we ingest vmstat data and display it?
- 14:23step 1: generate vmstat data
- 15:12here's the output
- 15:38step 2: design a clickhouse table to hold data
- 17:28step 3: load data into clickhouse
- 18:23step 4: build a grafana dashboard to show results
- 19:26step 5: go crazy!
- 20:12demo
- 26:38more software to build monitoring on clickhouse
- 27:51where can i find out more?
- 28:54thank you and have fun!
related talks
27mFast DIY O11y with OpenSrc Analytics & Visualization
29mDIY Monitoring with Open Source Analytics
26mO11y in One: Exploring ClickHouse as a Unified Telemetry Database
35mReal-Time Monitoring with Grafana, StatsD and InfluxDB
37mFinding Bottlenecks in ClickHouse: Profiling, Heatmaps & Flamegraphs
41mScaling Observability: From Chaos to Clarity with Open Source Tools
18mSwitching Jaeger Distributed Tracing to ClickHouse® to Enable APM
36mThe Power of Consolidation: A Unified Stack for Business Intelligence, Securi...
