Warren
e5a210a1bd
feat: support search on multi implicit fields ( #696 )
...
Currently, users (or hyperdx) will still need to create the index (ex: tokenbf) on multi-fields to speed up query if perf is a concern.
ref: HDX-1522
<img width="715" alt="image" src="https://github.com/user-attachments/assets/d8ddbe3e-eb75-4780-b2cf-03dcf2f309ec " />
<img width="1056" alt="image" src="https://github.com/user-attachments/assets/e2071c55-9958-4772-a156-e1e1b568d67e " />
2025-03-20 22:41:26 +00:00
Dan Hable
8d5c120490
fix: update delta chart with clause ( #694 )
...
Prior refactoring broke out the `sql` and `chartConfig` field names to allow each to be more strict in their types. The delta chart config call was missed in that refactoring.
After refactoring the schema:
<img width="1302" alt="Screenshot 2025-03-19 at 10 13 47 AM" src="https://github.com/user-attachments/assets/d4c5433c-751e-4561-9f52-72ccca64d301 " />
After fixing the delta chart component:
<img width="896" alt="Screenshot 2025-03-19 at 10 14 23 AM" src="https://github.com/user-attachments/assets/3a183e1a-af68-4453-b4fc-8515a8e6734e " />
In the UI:
<img width="1417" alt="Screenshot 2025-03-18 at 5 22 25 PM" src="https://github.com/user-attachments/assets/4b720af6-ed11-444d-8602-c019f38facad " />
Ref: HDX-1517
2025-03-19 20:37:19 +00:00
Dan Hable
b9f7d32efa
refactor: clean up the chart config CTE render logic ( #686 )
...
Some additional refactoring and testing around the more complex CTE rendering.
Ref: HDX-1511
2025-03-17 14:45:26 +00:00
Dan Hable
a9dfa14930
fix: use CTE instead of listing all index parts in query ( #666 )
...
## feat: allow CTE definitions to be nested chart configs
In order to easily use a CTE for fixing large index issues with delta
trace events, this commit updates the type and `renderWith` function to
render a nested chart config.
Ref: HDX-1343
---
## fix: use CTE instead of listing all index parts in query
Instead of sending 2 queries to the DB and enumerating all of parts
and offsets in the query, this change uses a CTE to select the parts.
This reduces the size of the HTTP request, which fixes the URI too
long response.
Ref: HDX-1343
2025-03-14 13:34:47 +00:00
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