Skip to content

Commit

Permalink
[PLAT-13799]: Add ability to groupBy Event type
Browse files Browse the repository at this point in the history
Summary: Add ability to groupBy Event type for ASH graphs

Test Plan: Tested locally

Reviewers: amalyshev, cdavid

Reviewed By: amalyshev

Differential Revision: https://phorge.dev.yugabyte.com/D34743
  • Loading branch information
rajmaddy89 committed May 3, 2024
1 parent 7a11ada commit 5745b81
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions troubleshoot/troubleshooting-framework-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion troubleshoot/troubleshooting-framework-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yugabytedb/troubleshoot-ui",
"version": "2.0.0-beta",
"version": "2.0.1",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import PrometheusIcon from '../assets/prometheus-icon.svg';
export const ASH_GROUPBY_VALUES = {
WAIT_EVENT_COMPONENT: 'waitEventComponent',
WAIT_EVENT_CLASS: 'waitEventClass',
WAIT_EVENT_TYPE: 'waitEventType',
WAIT_EVENT: 'waitEvent',
CLIENT_NODE_IP: 'clientNodeIp',
QUERY: 'queryId'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ export const SecondaryDashboardData = ({
let groupBy = ASH_GROUPBY_VALUES.WAIT_EVENT_COMPONENT;
if (groupByLabel === 'Class') {
groupBy = ASH_GROUPBY_VALUES.WAIT_EVENT_CLASS;
} else if (groupByLabel === 'Type') {
groupBy = ASH_GROUPBY_VALUES.WAIT_EVENT_TYPE;
} else if (groupByLabel === 'Event') {
groupBy = ASH_GROUPBY_VALUES.WAIT_EVENT;
} else if (groupByLabel === 'Query') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export interface GraphQuery {

export enum GraphLabel {
WAIT_EVENT_COMPONENT = 'waitEventComponent',
WAIT_EVENT_TYPE = 'waitEventType',
WAIT_EVENT_CLASS = 'waitEventClass',
WAIT_EVENT = 'waitEvent',
CLIENT_NODE_IP = 'clientNodeIp',
Expand Down

0 comments on commit 5745b81

Please sign in to comment.