Skip to content

Commit d80e331

Browse files
authored
feat(kiali): metrics tab (janus-idp#1331)
* Metrics tab * Sonar * Sonar * Dev * lint * Update Metrics on change tab * lint * Add metrics to App and Services * Update depts * Update tooltip * Update metrics settings * Remove set log level * Update custom tabs
1 parent fc056c2 commit d80e331

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+32264
-979
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"requestSize": false,
3+
"requestSizeAverage": false,
4+
"requestSizePercentiles": false,
5+
"responseSize": false,
6+
"responseSizeAverage": false,
7+
"responseSizePercentiles": false,
8+
"responseTime": false,
9+
"responseTimeAverage": false,
10+
"responseTimePercentiles": false
11+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "externalLinks": [] }

plugins/kiali/dev/__fixtures__/index.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* Config Data */
22
import anonymousAuth from './general/auth_info_anonymous.json';
33
import configData from './general/config.json';
4+
/** Metrics **/
5+
import crippledFeatures from './general/crippledFeatures.json';
6+
import grafanaInfo from './general/grafana.json';
47
import istioCertsInfo from './general/istioCertsInfo.json';
58
import istioConfig from './general/istioConfig.json';
69
import istioContainerLogs from './general/istioLogs.json';
@@ -20,6 +23,7 @@ import kialiTrafficGeneratorApp from './namespaces/bookinfo/apps/kiali_traffic_g
2023
import productpageApp from './namespaces/bookinfo/apps/productpage.json';
2124
import ratingsApp from './namespaces/bookinfo/apps/ratings.json';
2225
import reviewsApp from './namespaces/bookinfo/apps/reviews.json';
26+
import bookinfoDashboard from './namespaces/bookinfo/dashboard.json';
2327
/** health **/
2428

2529
import bookinfoHealthApp from './namespaces/bookinfo/health/app.json';
@@ -32,6 +36,7 @@ import detailsService from './namespaces/bookinfo/services/details.json';
3236
import productpageService from './namespaces/bookinfo/services/productpage.json';
3337
import ratingsService from './namespaces/bookinfo/services/ratings.json';
3438
import reviewsService from './namespaces/bookinfo/services/reviews.json';
39+
import bookinfoSpans from './namespaces/bookinfo/spans.json';
3540
/* bookinfo */
3641
import bookinfoTls from './namespaces/bookinfo/tls.json';
3742
/** Workloads **/
@@ -49,6 +54,7 @@ import istioingressgatewayApp from './namespaces/istio-system/apps/istio_ingress
4954
import istiodApp from './namespaces/istio-system/apps/istiod.json';
5055
import jaegerApp from './namespaces/istio-system/apps/jaeger.json';
5156
import kialiApp from './namespaces/istio-system/apps/kiali.json';
57+
import istioDashboard from './namespaces/istio-system/dashboard.json';
5258
/** health **/
5359
import istioSystemHealthApp from './namespaces/istio-system/health/app.json';
5460
import istioSystemHealthService from './namespaces/istio-system/health/service.json';
@@ -63,6 +69,7 @@ import istiodService from './namespaces/istio-system/services/istiod.json';
6369
import jaegerService from './namespaces/istio-system/services/jaeger_collector.json';
6470
import kialiService from './namespaces/istio-system/services/kiali.json';
6571
import prometheusService from './namespaces/istio-system/services/prometheus.json';
72+
import istioSpans from './namespaces/istio-system/spans.json';
6673
/* istio-system */
6774
import istioSystemTls from './namespaces/istio-system/tls.json';
6875
import istioSystemWorkloads from './namespaces/istio-system/workloads.json';
@@ -81,6 +88,7 @@ import hotelsApp from './namespaces/travel-agency/apps/hotels.json';
8188
import insurancesApp from './namespaces/travel-agency/apps/insurances.json';
8289
import mysqldbApp from './namespaces/travel-agency/apps/mysqldb.json';
8390
import travelApp from './namespaces/travel-agency/apps/travels.json';
91+
import travelAgencyDashboard from './namespaces/travel-agency/dashboard.json';
8492
/** health **/
8593

8694
import travelAgencyHealthApp from './namespaces/travel-agency/health/app.json';
@@ -96,6 +104,7 @@ import hotelsService from './namespaces/travel-agency/services/hotels.json';
96104
import insurancesService from './namespaces/travel-agency/services/insurances.json';
97105
import mysqldbService from './namespaces/travel-agency/services/mysqldb.json';
98106
import travelService from './namespaces/travel-agency/services/travels.json';
107+
import travelAgencySpans from './namespaces/travel-agency/spans.json';
99108
/* Travel agency */
100109
import travelAgencyTls from './namespaces/travel-agency/tls.json';
101110
import travelAgencyWorkloads from './namespaces/travel-agency/workloads.json';
@@ -108,6 +117,7 @@ import mysqldbv1Workload from './namespaces/travel-agency/workloads/mysqldb_v1.j
108117
import travelsv1Workload from './namespaces/travel-agency/workloads/travels_v1.json';
109118
import travelControlApps from './namespaces/travel-control/apps.json';
110119
import controlApp from './namespaces/travel-control/apps/control.json';
120+
import travelControlDashboard from './namespaces/travel-control/dashboard.json';
111121
/** health **/
112122

113123
import travelControlHealthApp from './namespaces/travel-control/health/app.json';
@@ -117,13 +127,15 @@ import travelControlIstioConfig from './namespaces/travel-control/istio_config.j
117127
import travelControlMetrics from './namespaces/travel-control/metrics';
118128
import travelControlServices from './namespaces/travel-control/services.json';
119129
import controlService from './namespaces/travel-control/services/control.json';
130+
import travelControlSpans from './namespaces/travel-control/spans.json';
120131
/* Travel control */
121132
import travelControlTls from './namespaces/travel-control/tls.json';
122133
import travelControlWorkloads from './namespaces/travel-control/workloads.json';
123134
import travelControlWorkload from './namespaces/travel-control/workloads/control.json';
124135
import travelsApp from './namespaces/travel-portal/apps/travels.json';
125136
import viaggiApp from './namespaces/travel-portal/apps/viaggi.json';
126137
import voyagesApp from './namespaces/travel-portal/apps/voyages.json';
138+
import travelPortalDashboard from './namespaces/travel-portal/dashboard.json';
127139
/** health **/
128140

129141
import travelPortalHealthApp from './namespaces/travel-portal/health/app.json';
@@ -135,6 +147,7 @@ import travelPortalServices from './namespaces/travel-portal/services.json';
135147
import travelsService from './namespaces/travel-portal/services/travels.json';
136148
import viaggiService from './namespaces/travel-portal/services/viaggi.json';
137149
import voyagesService from './namespaces/travel-portal/services/voyages.json';
150+
import travelPortalSpans from './namespaces/travel-portal/spans.json';
138151
/* Travel portal */
139152
import travelPortalTls from './namespaces/travel-portal/tls.json';
140153
import travelPortalWorkloads from './namespaces/travel-portal/workloads.json';
@@ -190,6 +203,8 @@ export const kialiData: { [index: string]: any } = {
190203
kiali: kialiApp,
191204
},
192205
istioConfigList: istioSystemIstioConfig,
206+
dashboard: istioDashboard,
207+
spans: istioSpans,
193208
},
194209
bookinfo: {
195210
tls: bookinfoTls,
@@ -222,6 +237,8 @@ export const kialiData: { [index: string]: any } = {
222237
kialitrafficgenerator: kialiTrafficGeneratorApp,
223238
},
224239
istioConfigList: bookinfoIstioConfig,
240+
dashboard: bookinfoDashboard,
241+
spans: bookinfoSpans,
225242
},
226243
'travel-control': {
227244
tls: travelControlTls,
@@ -241,6 +258,8 @@ export const kialiData: { [index: string]: any } = {
241258
control: controlApp,
242259
},
243260
istioConfigList: travelControlIstioConfig,
261+
dashboard: travelControlDashboard,
262+
spans: travelControlSpans,
244263
},
245264
'travel-portal': {
246265
tls: travelPortalTls,
@@ -266,6 +285,8 @@ export const kialiData: { [index: string]: any } = {
266285
voyages: voyagesApp,
267286
},
268287
istioConfigList: travelPortalIstioConfig,
288+
dashboard: travelPortalDashboard,
289+
spans: travelPortalSpans,
269290
},
270291
'travel-agency': {
271292
tls: travelAgencyTls,
@@ -303,6 +324,8 @@ export const kialiData: { [index: string]: any } = {
303324
travels: travelApp,
304325
},
305326
istioConfigList: travelAgencyIstioConfig,
327+
dashboard: travelAgencyDashboard,
328+
spans: travelAgencySpans,
306329
},
307330
},
308331
logs: containerLogs,
@@ -330,4 +353,6 @@ export const kialiData: { [index: string]: any } = {
330353
'travel-control': travelControlApps,
331354
},
332355
status: status,
356+
crippledFeatures: crippledFeatures,
357+
grafanaInfo: grafanaInfo,
333358
};

0 commit comments

Comments
 (0)