Comments (2)
HIG-4664 dashboards / grafana should support grouping by multiple keys
from highlight.
To support grouping by multiple keys in the UI, follow these steps:
-
Update State Management in
GraphingEditor.tsx
:- Modify the state to handle multiple keys for grouping.
const [groupByKeys, setGroupByKeys] = useState<string[]>([]);
-
Update
LabeledRow
Component for Group By:- Update the
LabeledRow
component to allow multiple selections for grouping keys.
<LabeledRow label="Group by" name="groupBy" enabled={groupByEnabled} setEnabled={setGroupByEnabled} tooltip="Categorical fields for grouping results into separate series." > <Combobox options={allKeys} selection={groupByKeys} setSelection={setGroupByKeys} setQuery={setKeysQuery} label="groupBy" multiple /> </LabeledRow>
- Update the
-
Update Graph Input in
onSave
Function:- Modify the
onSave
function to include the updated groupByKeys.
const graphInput: GraphInput = { ..., groupByKeys: groupByEnabled ? groupByKeys : null, ... };
- Modify the
-
Update
Graph
Component inDashboard.tsx
:- Ensure the
Graph
component can handle multiple grouping keys.
<Graph ... groupByKeys={g.groupByKeys ?? undefined} ... />
- Ensure the
-
Update Graph Schema in
model.go
(if necessary):- Ensure the Graph struct in the backend model supports multiple grouping keys.
type Graph struct { ... GroupByKeys []string `json:"groupByKeys"` ... }
References
/frontend/src/pages/Graphing/GraphingEditor.tsx
/frontend/src/pages/Graphing/Dashboard.tsx
/frontend/src/pages/Graphing
/backend/model/model.go
from highlight.
Related Issues (20)
- Single select has no loading state HOT 2
- Sorting on tables HOT 2
- Add a button on each graph to allow for moving them around HOT 2
- Time Picker Bugs HOT 2
- metrics group by session attributes does not count session for each matching group value HOT 2
- hide empty groups by default HOT 2
- count distinct multiplying by sampling rate HOT 2
- support all excluded reasons in sessions ui HOT 2
- Add exclusion reasons to frontend end HOT 2
- Consolidate @highlight-run/client and @highlight-run/firstload HOT 2
- Configure OTEL propagation in all SDKs HOT 2
- Ensure DataSyncQueue is working correctly HOT 2
- E2E tests for session deletion HOT 2
- Better monitoring for long running jobs HOT 2
- use `traces_sampling_new` HOT 2
- New Hover Card Design HOT 2
- Cooldown logic for alert evaluation HOT 2
- Perf improvements for long running logs/traces queries HOT 2
- session has_error:false filtering does not work as expected HOT 1
- How can stop the session replay ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highlight.