Commit graph

15 commits

Author SHA1 Message Date
Mike Shi
521facae92
use quote for aliases for sql compatibility (#680) 2025-03-13 06:19:26 +00:00
Tom Alexander
c6916f08a0
fix: Remove fill from chart configs as it breaks heatmap and more (#674)
WITH FILL messes with the heatmap bucketing logic, confusing the charting library. This change removes WITH FILL from query generation.

Ref: HDX-1456
2025-03-13 01:30:50 +00:00
Mike Shi
8f4e01035b
add support for aliases in search, add WITH clause to chartconfig (#659)
<img width="1645" alt="image" src="https://github.com/user-attachments/assets/430df67f-c415-4191-b796-ea078b8a1232" />

still not super smooth, but gets us most of the way there
2025-03-13 01:20:52 +00:00
Dan Hable
8acc7257d2
fix: few of histogram query fixes/tweaks (#669)
1. Eliminates a subquery select by pulling the handful of subquery fields up a level.

2. Removed `intDivOrZero` usage as this rounded fractional amounts to the nearest whole number, over/under stating the value.

3. Formatting of query now matches other queries.

Ref: HDX-1467
2025-03-12 14:12:21 +00:00
Warren
4492daa5b9
fix: gauge metric attribute conflicts issue (#670)
Ref: HDX-1468
2025-03-12 02:16:15 +00:00
Warren
9c5c2396fa
fix: handle 'filters' config (metrics) (#663)
Ref: HDX-1466
2025-03-11 07:25:00 +00:00
Warren
29e8f37d00
fix: aggCondition issue in sum/gauge/histogram metrics (#662)
Ref: HDX-1455
2025-03-10 23:38:55 +00:00
Dan Hable
99b60d50b2
fix: update sum metric query based on v1 integration test (#650)
Fix the sum query to produce the correct results from the min/max test case from v1.

Ref: HDX-1421
2025-03-07 07:03:03 +00:00
Warren
cd0e4fd71c
fix: correct handling of gauge metrics in renderChartConfig (#654) 2025-03-06 00:06:57 +00:00
Dan Hable
e80630c107
feat: supporting quantile histogram metrics (#635)
Additional `renderChartConfig` support to transform a histogram select into the correct SQL syntax to generate a chart. For parity with v1, this query only handles quantile queries.

<img width="1939" alt="Screenshot 2025-02-26 at 12 58 55 PM" src="https://github.com/user-attachments/assets/1126ac6c-c431-4d89-92d7-9df1e49e25cf" />

<img width="1960" alt="Screenshot 2025-02-26 at 3 11 07 PM" src="https://github.com/user-attachments/assets/e4fa09bf-1e27-4a90-ad25-6c6cb2890877" />

Ref: HDX-1339
2025-02-27 16:55:36 +00:00
Tom Alexander
521793df2d
fix: Ensure group-by works with sum metrics (#636)
Adds all available columns into the query so that we can properly apply the group by clause.

Ref: HDX-1419
2025-02-27 15:51:23 +00:00
Warren
57a6bc399f
feat: BETA metrics support (sum + gauge) (#629)
<img width="1310" alt="Screenshot 2025-02-25 at 3 43 11 PM" src="https://github.com/user-attachments/assets/38c98bc2-2ff2-412c-b26d-4ed9952439f2" />


Co-authored-by: Mike Shi <2781687+MikeShi42@users.noreply.github.com>
Co-authored-by: Dan Hable <418679+dhable@users.noreply.github.com>
Co-authored-by: Tom Alexander <3245235+teeohhem@users.noreply.github.com>
2025-02-26 00:00:48 +00:00
Warren
a483780ef6
style: move types from renderChartConfig + add exceptions types (#568) 2025-01-24 01:52:54 +00:00
Warren
a70080e533
style: use common utils package (api and app) (#555) 2025-01-21 18:44:14 +00:00
Warren
6ee29abe02
feat: introduce common-utils package (#554)
- copy and paste the utils to a separate dir
- setup building + CD
2025-01-16 18:15:22 +00:00