@yugabytedb/perf-advisor-ui 1.0.136 → 1.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,6 @@ export declare const ACTIVE_SESSION_HISTORY_EPS_GLOBAL = "active_session_history
21
21
  export declare const ACTIVE_SESSION_HISTORY_QUERY_EVENTS = "active_session_history_query_events";
22
22
  export declare const ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE = "active_session_history_eps_client_node";
23
23
  export declare const CPU_COUNT = "cpu_count";
24
- export declare const K8S_CPU_REQUESTS = "container_cpu_request";
25
24
  export declare const CPU_USAGE_BY_DATABASE = "cpu_usage_by_database";
26
25
  export declare const CPU_THROTTLED_BY_DATABASE = "cpu_throttled_by_database";
27
26
  export declare const CPU_USAGE_QOS_THRESHOLD = "cpu_usage_qos_threshold";
@@ -167,6 +166,7 @@ export declare const MetricOrigin: {
167
166
  readonly CUSTOMER: "customer";
168
167
  readonly UNIVERSE: "universe";
169
168
  };
169
+ export declare const METRIC_TABS: readonly ["ysql_ops", "ycql_ops", "server", "per_process", "disk_io", "tserver", "master", "master_advanced", "lsmdb"];
170
170
  export declare const METRIC_TABS_TABLES: string[];
171
171
  export declare const METRIC_TABS_DATABASES: string[];
172
172
  export declare const METRIC_TABLES_RESOURCES_WITH_GRAPHS: {
@@ -216,37 +216,6 @@ export declare const METRIC_RESOURCES_WITH_GRAPHS: readonly [{
216
216
  readonly name: "lsmdb";
217
217
  readonly metrics: readonly ["lsm_rocksdb_seek_next_prev", "lsm_rocksdb_total_sst_per_node", "lsm_rocksdb_avg_num_sst_per_node", "lsm_rocksdb_latencies_get", "lsm_rocksdb_latencies_write", "lsm_rocksdb_latencies_seek", "lsm_rocksdb_latencies_mutex", "lsm_rocksdb_block_cache_hit_miss", "lsm_rocksdb_block_cache_usage", "lsm_rocksdb_blooms_checked_and_useful", "lsm_rocksdb_stalls", "lsm_rocksdb_write_rejections", "lsm_rocksdb_memory_rejections", "lsm_rocksdb_flush_size", "lsm_rocksdb_compaction", "lsm_rocksdb_compaction_tasks", "lsm_rocksdb_compaction_time", "lsm_rocksdb_compaction_numfiles", "lsm_rocksdb_mem_tracker_db_memtable", "docdb_transaction", "docdb_transaction_pool_cache", "tablet_splitting_stats", "automatic_split_manager_time"];
218
218
  }];
219
- export declare const METRIC_K8S_RESOURCES_WITH_GRAPHS: readonly [{
220
- readonly title: "YSQL";
221
- readonly name: "ysql_ops";
222
- readonly metrics: readonly ["ysql_server_rpc_per_second", "ysql_sql_latency", "ysql_connections", "ysql_connections_per_sec", "ysql_server_advanced_rpc_per_second", "ysql_sql_advanced_latency", "ysql_catalog_cache_misses", "ysql_conn_mgr_active_connections"];
223
- }, {
224
- readonly title: "YCQL";
225
- readonly name: "ycql_ops";
226
- readonly metrics: readonly ["cql_server_rpc_per_second", "cql_sql_latency", "cql_server_rpc_p99", "cql_sql_latency_breakdown", "cql_yb_local_vs_remote", "cql_yb_latency", "cql_reactor_latency", "tserver_rpc_queue_size_cql", "cql_response_sizes", "cql_yb_transaction", "cql_yb_rpc_connections"];
227
- }, {
228
- readonly title: "Container";
229
- readonly name: "container";
230
- readonly metrics: readonly ["container_cpu_usage", "container_memory_usage", "container_volume_stats", "container_volume_usage_percent"];
231
- }, {
232
- readonly title: "Tablet Server";
233
- readonly name: "tserver";
234
- readonly metrics: readonly ["tserver_rpcs_per_sec_per_node", "tserver_ops_latency", "tserver_handler_latency", "tserver_threads_running", "tserver_threads_started", "tserver_uptime_min", "tserver_memory", "tserver_consensus_rpcs_per_sec", "tserver_change_config", "tserver_remote_bootstraps", "tserver_consensus_rpcs_latency", "tserver_change_config_latency", "tserver_context_switches", "tserver_spinlock_server", "tserver_log_latency", "tserver_log_bytes_written", "tserver_log_bytes_read", "tserver_log_ops_second", "tserver_write_lock_latency", "tserver_tc_malloc_stats", "tserver_log_stats", "tserver_cache_reader_num_ops", "tserver_glog_info_messages", "tserver_rpc_queue_size_tserver", "tserver_cpu_util_secs", "tserver_yb_rpc_connections", "tserver_live_tablet_peers", "raft_leader", "tserver_max_follower_lag"];
235
- }, {
236
- readonly title: "Master Server";
237
- readonly name: "master";
238
- readonly metrics: readonly ["master_overall_rpc_rate", "master_latency", "master_uptime_min", "master_memory", "master_get_tablet_location", "master_tsservice_reads", "master_tsservice_reads_latency", "master_tsservice_writes", "master_tsservice_writes_latency", "master_ts_heartbeats", "tserver_rpc_queue_size_master", "master_consensus_update", "master_consensus_update_latency", "master_multiraft_consensus_update", "master_multiraft_consensus_update_latency", "master_table_ops", "master_tablet_split_candidates", "master_cpu_util_secs", "master_yb_rpc_connections", "master_leaderless_and_underreplicated_tablets", "master_max_follower_lag", "master_load_balancer_stats"];
239
- }, {
240
- readonly title: "Master Server Advanced";
241
- readonly name: "master_advanced";
242
- readonly metrics: readonly ["master_threads_running", "master_log_latency", "master_log_bytes_written", "master_log_bytes_read", "master_tc_malloc_stats", "master_glog_info_messages", "master_lsm_rocksdb_seek_next_prev", "master_lsm_rocksdb_num_seeks_per_node", "master_lsm_rocksdb_total_sst_per_node", "master_lsm_rocksdb_avg_num_sst_per_node", "master_lsm_rocksdb_block_cache_hit_miss", "master_lsm_rocksdb_block_cache_usage", "master_lsm_rocksdb_blooms_checked_and_useful", "master_lsm_rocksdb_flush_size", "master_lsm_rocksdb_compaction", "master_lsm_rocksdb_compaction_numfiles", "master_lsm_rocksdb_compaction_time"];
243
- }, {
244
- readonly title: "DocDB";
245
- readonly name: "lsmdb";
246
- readonly metrics: readonly ["lsm_rocksdb_seek_next_prev", "lsm_rocksdb_total_sst_per_node", "lsm_rocksdb_avg_num_sst_per_node", "lsm_rocksdb_latencies_get", "lsm_rocksdb_latencies_write", "lsm_rocksdb_latencies_seek", "lsm_rocksdb_latencies_mutex", "lsm_rocksdb_block_cache_hit_miss", "lsm_rocksdb_block_cache_usage", "lsm_rocksdb_blooms_checked_and_useful", "lsm_rocksdb_stalls", "lsm_rocksdb_write_rejections", "lsm_rocksdb_memory_rejections", "lsm_rocksdb_flush_size", "lsm_rocksdb_compaction", "lsm_rocksdb_compaction_tasks", "lsm_rocksdb_compaction_time", "lsm_rocksdb_compaction_numfiles", "lsm_rocksdb_mem_tracker_db_memtable", "docdb_transaction", "docdb_transaction_pool_cache", "tablet_splitting_stats", "automatic_split_manager_time"];
247
- }];
248
- export declare const METRIC_TABS: ("ysql_ops" | "ycql_ops" | "server" | "per_process" | "disk_io" | "tserver" | "master" | "master_advanced" | "lsmdb")[];
249
- export declare const METRIC_TABS_K8S: ("container" | "ysql_ops" | "ycql_ops" | "tserver" | "master" | "master_advanced" | "lsmdb")[];
250
219
  export declare const RCA_GANT_CHART = "gant-chart-anomalies";
251
220
  export declare const METRIC_NAMES: {
252
221
  ysql_server_rpc_per_second: string;
@@ -285,10 +254,6 @@ export declare const METRIC_NAMES: {
285
254
  network_errors: string;
286
255
  system_load_over_time: string;
287
256
  node_clock_skew: string;
288
- container_cpu_usage: string;
289
- container_memory_usage: string;
290
- container_volume_stats: string;
291
- container_volume_usage_percent: string;
292
257
  process_user_cpu_seconds: string;
293
258
  process_system_cpu_seconds: string;
294
259
  process_virtual_memory: string;
@@ -405,7 +370,6 @@ export declare const METRIC_NAMES: {
405
370
  table_mem_tracker_db_memtable: string;
406
371
  };
407
372
  export declare const METRICS_SESSION_STORAGE_KEY = "METRICS_NAMES";
408
- export declare const METRICS_K8S_SESSION_STORAGE_KEY = "METRICS_K8S_NAMES";
409
373
  export declare const METRICS_OUTLIER_TABLES_STORAGE_KEY = "METRICS_OUTLIER_TABLES_NAMES";
410
374
  export declare const METRICS_OUTLIER_DATABASES_STORAGE_KEY = "METRICS_OUTLIER_DATABASES_NAMES";
411
375
  export declare const COLORS: string[];
@@ -8,7 +8,6 @@ export interface Universe {
8
8
  isPgssRpcStatsSupported?: boolean;
9
9
  qpmEnabled?: boolean;
10
10
  qpmSupported?: boolean;
11
- kubernetes?: boolean;
12
11
  resources: Resources;
13
12
  universeConfig: UniverseConfig;
14
13
  universeDetails: any;
@@ -56,7 +56,7 @@ export declare const getOperations: (metricMeasure: string, metricData: any, gra
56
56
  export declare const calculateDateDifference: (startDate: Date, endDate: Date) => number;
57
57
  export declare const applyClusterFilters: (filters: GraphFilters, details: Pick<ClusterDetails, 'cluster' | 'region' | 'zone' | 'node'>) => void;
58
58
  export declare const buildClusterUrlParams: (details: Pick<ClusterDetails, 'cluster' | 'region' | 'zone' | 'node'>) => URLSearchParams;
59
- export declare const buildTopKMetricParams: (clusterDetails: ClusterDetails, metricsTabNumber: number, isK8sUniverse?: boolean) => GraphRequestParams[] | undefined;
59
+ export declare const buildTopKMetricParams: (clusterDetails: ClusterDetails, metricsTabNumber: number) => GraphRequestParams[] | undefined;
60
60
  export declare const buildAnomalyGraphParams: (clusterDetails: ClusterDetails, graphParamsCopy: GraphRequestParams[]) => GraphRequestParams[];
61
61
  export declare const buildHistoricalQueryParams: (clusterDetails: ClusterDetails, urlParams: QueryPageParams | null, graphNames: readonly string[], anomalyData?: AnomalyGroup | null, ashGroupBy?: WaitEventClassification) => GraphRequestParams[];
62
62
  export declare const getStepSeconds: (startTime: string | null, endTime: string | null) => number;
@@ -160,16 +160,20 @@ export declare const ensureCompletePath: (appName: AppName, tab: InsightsTabs) =
160
160
  */
161
161
  export declare const buildPrimaryDashboardUrl: (appName: AppName, isQueryViewFromAnomaly?: boolean) => string;
162
162
  /**
163
- * Builds the YBM current URL by removing specific query parameters
164
- * @returns The YBM URL with cleaned query parameters
163
+ * Builds the primary-dashboard URL for embedded SPA hosts (YBA, YBM) by removing
164
+ * the query-drilldown search params from the current location. These hosts render
165
+ * the drilldown vs. dashboard from state and navigate client-side (history.push),
166
+ * so the URL is kept in sync without a full page reload.
167
+ * @returns The current URL with query-drilldown params/segments removed
165
168
  */
166
- export declare const buildYbmUrl: (isHistoricalQueryView: boolean, isQueryViewFromAnomalyView?: boolean, showStandaloneAnomalies?: boolean) => URL;
169
+ export declare const buildEmbeddedPrimaryDashboardUrl: (isHistoricalQueryView: boolean, isQueryViewFromAnomalyView?: boolean, showStandaloneAnomalies?: boolean) => URL;
167
170
  /**
168
- * Builds the YBM drilldown URL by removing query-specific path segments and parameters
169
- * This is used when navigating from query level (level 3) back to anomaly level (level 2)
170
- * @returns The YBM URL with query path and parameters removed
171
+ * Builds the anomaly-drilldown URL for embedded SPA hosts (YBA, YBM) by removing
172
+ * the query-specific path segment and params. Used when navigating from query
173
+ * level (level 3) back to anomaly level (level 2).
174
+ * @returns The current URL with query path and parameters removed
171
175
  */
172
- export declare const buildYbmDrilldownUrl: () => URL;
176
+ export declare const buildEmbeddedDrilldownUrl: () => URL;
173
177
  /**
174
178
  * Navigates back to the primary dashboard
175
179
  * @param appName - The application name (YBA, YBM, or Web)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugabytedb/perf-advisor-ui",
3
- "version": "1.0.136",
3
+ "version": "1.0.137",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -35,7 +35,7 @@
35
35
  "@typescript-eslint/eslint-plugin": "6.21.0",
36
36
  "@typescript-eslint/parser": "6.21.0",
37
37
  "@vitejs/plugin-react": "5.2.0",
38
- "@yugabyte-ui-library/core": "2.0.25",
38
+ "@yugabyte-ui-library/core": "2.0.27",
39
39
  "eslint": "7.32.0",
40
40
  "eslint-config-prettier": "8.3.0",
41
41
  "eslint-plugin-import": "2.23.4",
@@ -81,7 +81,7 @@
81
81
  "@material-ui/core": "4.12.3",
82
82
  "@material-ui/icons": "4.11.2",
83
83
  "@material-ui/lab": "4.0.0-alpha.58",
84
- "@yugabyte-ui-library/core": "2.0.25",
84
+ "@yugabyte-ui-library/core": "2.0.27",
85
85
  "react": "17.0.2",
86
86
  "react-dom": "17.0.2",
87
87
  "react-query": "3.32.1"