Company
Date Published
Author
Avthar Sewrathan
Word count
1611
Language
English
Hacker News points
None

Summary

The problem with Grafana's drill-down functionality is that it can be slow for non-aggregated, fine-grained data. To solve this, the solution uses PostgreSQL's UNION ALL function to allow "auto-switching" between aggregations depending on the time interval selected. This enables users to create graphs that automatically switch between different aggregations of their data, allowing them to drill down into their metrics as quickly and efficiently as possible while saving time and CPU resources. By using continuous aggregates in PostgreSQL, users can speed up their dashboards even further by not directly querying the hypertable that houses raw data.