Skip to content

Commit f02924d

Browse files
authored
Merge pull request #559 from wingerx/main
fix(prometheus): handle plain text response in Prometheus connection test
2 parents 2069137 + 247b8a8 commit f02924d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

prometheus/src/components/Settings/Settings.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ export function Settings(props: SettingsProps) {
116116
}
117117

118118
const proxyUrl = `/clusters/${selectedCluster}/api/v1/namespaces/${namespace}/services/${service}:${port}/proxy${subPath}/-/healthy`;
119-
await request(proxyUrl);
119+
await request(proxyUrl, {
120+
method: 'GET',
121+
isJSON: false,
122+
});
120123

121124
setTestStatus('success');
122125
setTestMessage(t('Connection successful!'));

0 commit comments

Comments
 (0)