Skip to content

Commit 2ea76f4

Browse files
authored
feat: show y Axis and corresponding grid lines for Metrics tab in Services/API Endpoints/Backend (#1381)
* feat(metrics): show y Axis and corresponding grid lines * refactor: remove max series data points from y axis config * feat: added y axis grid lines for metrics tab in API view * feat: added y axis grid lines for metrics tab in Backends view
1 parent 150d5eb commit 2ea76f4

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

projects/observability/src/pages/apis/api-detail/metrics/api-metrics.dashboard.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ export const apiMetricsDashboard: DashboardDefaultConfiguration = {
201201
'color-palette': RED_COLOR_PALETTE,
202202
'selectable-interval': true,
203203
'legend-position': LegendPosition.TopLeft,
204+
'show-y-axis': true,
205+
'y-axis': {
206+
type: 'cartesian-axis',
207+
'show-grid-lines': true,
208+
'min-upper-limit': 25
209+
},
204210
bands: [
205211
{
206212
type: 'band',
@@ -383,6 +389,12 @@ export const apiMetricsDashboard: DashboardDefaultConfiguration = {
383389
type: 'cartesian-widget',
384390
'selectable-interval': true,
385391
'legend-position': LegendPosition.None,
392+
'show-y-axis': true,
393+
'y-axis': {
394+
type: 'cartesian-axis',
395+
'show-grid-lines': true,
396+
'min-upper-limit': 25
397+
},
386398
series: [
387399
{
388400
type: 'series',

projects/observability/src/pages/apis/backend-detail/metrics/backend-metrics.dashboard.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ export const backendMetricsDashboard: DashboardDefaultConfiguration = {
201201
'color-palette': RED_COLOR_PALETTE,
202202
'selectable-interval': true,
203203
'legend-position': LegendPosition.TopLeft,
204+
'show-y-axis': true,
205+
'y-axis': {
206+
type: 'cartesian-axis',
207+
'show-grid-lines': true,
208+
'min-upper-limit': 25
209+
},
204210
series: [
205211
{
206212
type: 'series',
@@ -351,6 +357,12 @@ export const backendMetricsDashboard: DashboardDefaultConfiguration = {
351357
type: 'cartesian-widget',
352358
'selectable-interval': true,
353359
'legend-position': LegendPosition.None,
360+
'show-y-axis': true,
361+
'y-axis': {
362+
type: 'cartesian-axis',
363+
'show-grid-lines': true,
364+
'min-upper-limit': 25
365+
},
354366
series: [
355367
{
356368
type: 'series',

projects/observability/src/pages/apis/service-detail/metrics/service-metrics.dashboard.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ export const serviceMetricsDashboard: DashboardDefaultConfiguration = {
201201
'color-palette': RED_COLOR_PALETTE,
202202
'selectable-interval': true,
203203
'legend-position': LegendPosition.TopLeft,
204+
'show-y-axis': true,
205+
'y-axis': {
206+
type: 'cartesian-axis',
207+
'show-grid-lines': true,
208+
'min-upper-limit': 25
209+
},
204210
bands: [
205211
{
206212
type: 'band',
@@ -383,6 +389,12 @@ export const serviceMetricsDashboard: DashboardDefaultConfiguration = {
383389
type: 'cartesian-widget',
384390
'selectable-interval': true,
385391
'legend-position': LegendPosition.None,
392+
'show-y-axis': true,
393+
'y-axis': {
394+
type: 'cartesian-axis',
395+
'show-grid-lines': true,
396+
'min-upper-limit': 25
397+
},
386398
series: [
387399
{
388400
type: 'series',

0 commit comments

Comments
 (0)