File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,9 @@ export async function getPodStats() {
80
80
}
81
81
82
82
try {
83
- const pods = await apiClient . listPodForAllNamespaces (
83
+ const pods = await apiClient . listNamespacedPod (
84
+ "5stack" ,
85
+ undefined ,
84
86
undefined ,
85
87
undefined ,
86
88
`spec.nodeName=${ nodeName } ` ,
@@ -90,6 +92,7 @@ export async function getPodStats() {
90
92
name : string ;
91
93
metrics : PodMetric ;
92
94
} > = [ ] ;
95
+
93
96
for ( const pod of pods . body . items ) {
94
97
if ( ! pod . metadata ?. namespace || ! pod . metadata ?. name ) {
95
98
continue ;
@@ -99,8 +102,9 @@ export async function getPodStats() {
99
102
pod . metadata ?. namespace ,
100
103
pod . metadata ?. name ,
101
104
) ;
105
+
102
106
stats . push ( {
103
- name : pod . metadata ?. name ,
107
+ name : pod . metadata ?. labels ?. app ! ,
104
108
metrics,
105
109
} ) ;
106
110
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments