You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Invalid format. Use: namespace/service-name:port or https://prometheus.example.com'
208
+
)
179
209
: t(
180
-
'Address of the Prometheus Service, only used when auto-detection is disabled. Format: namespace/service-name:port'
210
+
'Prometheus address. Used only when auto-detection is disabled. Examples: namespace/service-name:port or https://prometheus.example.com. External URLs require CORS to be enabled on the Prometheus server.'
181
211
)
182
212
}
183
213
error={addressError}
@@ -220,16 +250,16 @@ export function Settings(props: SettingsProps) {
220
250
),
221
251
},
222
252
{
223
-
name: t('Prometheus Service Subpath'),
253
+
name: t('Prometheus Subpath'),
224
254
value: (
225
255
<TextField
226
256
value={selectedClusterData.subPath||''}
227
257
disabled={!isAddressFieldEnabled}
228
258
helperText={t(
229
-
"Optional subpath to the Prometheus Service endpoint. Only used when auto-detection is disabled. Examples: 'prometheus'."
259
+
"Optional subpath to the Prometheus endpoint. Only used when auto-detection is disabled. Examples: 'prometheus'."
@@ -280,7 +281,7 @@ async function testPrometheusQuery(
280
281
/**
281
282
* Fetches metrics data from Prometheus using the provided parameters.
282
283
* @param {object} data - The parameters for fetching metrics.
283
-
* @param {string} data.prefix - The namespace prefix.
284
+
* @param {string} data.prefix - Either a Kubernetes proxy prefix in the form {namespace}/{pods|services}/{name}:port, or a full HTTP/HTTPS Prometheus base URL.
284
285
* @param {string} data.query - The Prometheus query string.
285
286
* @param {number} data.from - The start time for the query (Unix timestamp).
286
287
* @param {number} data.to - The end time for the query (Unix timestamp).
@@ -309,17 +310,57 @@ export async function fetchMetrics(data: {
0 commit comments