File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed
containers/Tenant/Diagnostics/TenantOverview Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const prepareWidgetData = (
2929 data : PreparedMetricsData ,
3030 options : ChartOptions = { } ,
3131) : YagrWidgetData => {
32- const { dataType, scaleRange} = options ;
32+ const { dataType, scaleRange, showLegend } = options ;
3333 const defaultDataFormatter = getDefaultDataFormatter ( dataType ) ;
3434
3535 const isDataEmpty = ! data . metrics . length ;
@@ -91,6 +91,9 @@ const prepareWidgetData = (
9191 show : true ,
9292 tracking : 'sticky' ,
9393 } ,
94+ legend : {
95+ show : showLegend ,
96+ } ,
9497 } ,
9598 } ;
9699} ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export interface ChartOptions {
3838 min ?: number ;
3939 max ?: number ;
4040 } ;
41+ showLegend ?: boolean ;
4142}
4243
4344export type ChartDataStatus = 'loading' | 'success' | 'error' ;
Original file line number Diff line number Diff line change @@ -16,31 +16,24 @@ export const defaultDashboardConfig: ChartConfig[] = [
1616 metrics : [
1717 {
1818 target : 'queries.latencies.p50' ,
19- title : i18n ( 'charts.transaction-latency' , {
20- percentile : 'p50' ,
21- } ) ,
19+ title : 'p50' ,
2220 } ,
2321 {
2422 target : 'queries.latencies.p75' ,
25- title : i18n ( 'charts.transaction-latency' , {
26- percentile : 'p75' ,
27- } ) ,
23+ title : 'p75' ,
2824 } ,
2925 {
3026 target : 'queries.latencies.p90' ,
31- title : i18n ( 'charts.transaction-latency' , {
32- percentile : 'p90' ,
33- } ) ,
27+ title : 'p90' ,
3428 } ,
3529 {
3630 target : 'queries.latencies.p99' ,
37- title : i18n ( 'charts.transaction-latency' , {
38- percentile : 'p99' ,
39- } ) ,
31+ title : 'p99' ,
4032 } ,
4133 ] ,
4234 options : {
4335 dataType : 'ms' ,
36+ showLegend : true ,
4437 } ,
4538 } ,
4639] ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export const cpuDashboardConfig: ChartConfig[] = [
2222 min : 0 ,
2323 max : 1 ,
2424 } ,
25+ showLegend : true ,
2526 } ,
2627 } ,
2728] ;
You can’t perform that action at this time.
0 commit comments